#NEWLINE# def has_table( self , connection , table_name , schema = None ) : #NEWLINE# #INDENT# quote = self . identifier_preparer . quote_identifier #NEWLINE# if ( schema is not None ) : #NEWLINE# #INDENT# pragma = ( 'PRAGMA %s.' % quote ( schema ) ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# pragma = 'PRAGMA ' #NEWLINE# #UNINDENT# qtable = quote ( table_name ) #NEWLINE# statement = ( '%stable_info(%s)' % ( pragma , qtable ) ) #NEWLINE# cursor = _pragma_cursor ( connection . execute ( pragma ) ) #NEWLINE# row = cursor . fetchone ( ) #NEWLINE# while ( ( not cursor . closed ) and ( cursor . fetchone ( ) is not None ) ) : #NEWLINE# #INDENT# pass #NEWLINE# #UNINDENT# return ( row is not None )