#NEWLINE# def create_attribute( self , cls , attr_name ) : #NEWLINE# #INDENT# cursor_method = getattr ( Cursor , attr_name ) #NEWLINE# @ functools . wraps ( cursor_method ) #NEWLINE# def return_clone( self , * args , **kwargs ) : #NEWLINE# #INDENT# cursor_method ( self . delegate , * args , ** kwargs ) #NEWLINE# return self #NEWLINE# #UNINDENT# return_clone . is_motorcursor_chaining_method = True #NEWLINE# return_clone . pymongo_method_name = attr_name #NEWLINE# if self . doc : #NEWLINE# #INDENT# return_clone . __doc__ = self . doc #NEWLINE# #UNINDENT# return return_clone