#NEWLINE# def copy_from( self , fileobj , table = None , sep = '\t' , null = None , query = None ) : #NEWLINE# #INDENT# if ( query == None ) : #NEWLINE# #INDENT# if ( table == None ) : #NEWLINE# #INDENT# raise CopyQueryOrTableRequiredError ( ) #NEWLINE# #UNINDENT# query = ( "COPY %s FROM stdout DELIMITER '%s'" % ( table , sep ) ) #NEWLINE# if ( null is not None ) : #NEWLINE# #INDENT# query += ( " NULL '%s'" % ( null , ) ) #NEWLINE# #UNINDENT# #UNINDENT# self . copy_execute ( fileobj , query )