#NEWLINE# def _dialect( self , dialect ) : #NEWLINE# #INDENT# if ( ( not dialect ) and ( not self . default_dialect ) ) : #NEWLINE# #INDENT# raise KeyError ( 'No SQL dialect specified' ) #NEWLINE# #UNINDENT# dialect = ( dialect or self . default_dialect ) #NEWLINE# if ( dialect not in mock_engines ) : #NEWLINE# #INDENT# raise NotImplementedError ( ( "SQL dialect '%s' unknown" % dialect ) ) #NEWLINE# #UNINDENT# return dialect