#NEWLINE# def open( self , mode = 'r' , headers = None , query_args = None , override_num_retries = None ) : #NEWLINE# #INDENT# if ( headers == 'r' ) : #NEWLINE# #INDENT# self . mode = 'r' #NEWLINE# self . open_read ( headers = headers , query_args = query_args , override_num_retries = override_num_retries ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# if ( mode == 'w' ) : #NEWLINE# #INDENT# self . mode = 'w' #NEWLINE# self . open_write ( headers = headers , override_num_retries = override_num_retries ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# raise BotoClientError ( ( 'Invalid mode: %s' % mode ) )