#NEWLINE# def __get__( self , instance , owner ) : #NEWLINE# #INDENT# @ functools . wraps ( self . func ) #NEWLINE# def wrapper( * args , **kwargs ) : #NEWLINE# #INDENT# if ( instance is None ) : #NEWLINE# #INDENT# return self . func ( owner , * args , ** kwargs ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# return self . func ( owner , instance , * args , ** kwargs ) #NEWLINE# #UNINDENT# #UNINDENT# return wrapper