#NEWLINE# def _clone( self , klass = None , setup = False , **kwargs ) : #NEWLINE# #INDENT# if ( klass is None ) : #NEWLINE# #INDENT# klass = self . __class__ #NEWLINE# #UNINDENT# query = self . query . clone ( ) #NEWLINE# if self . _sticky_filter : #NEWLINE# #INDENT# query . filter_is_sticky = True #NEWLINE# #UNINDENT# c = klass ( model = klass . model , query = query ) #NEWLINE# c . __dict__ . update ( kwargs ) #NEWLINE# if ( setup and hasattr ( c , '_setup_query' ) ) : #NEWLINE# #INDENT# c . _setup_query ( ) #NEWLINE# #UNINDENT# return c