#NEWLINE# def add_sheet( self , worksheet , index = None ) : #NEWLINE# #INDENT# 'Add an existing worksheet (at an optional index).' #NEWLINE# if ( index is None ) : #NEWLINE# #INDENT# index = len ( self . worksheets ) #NEWLINE# #UNINDENT# self . worksheets . insert ( index , worksheet )