#NEWLINE# def __init__( self , * args , **kwargs ) : #NEWLINE# #INDENT# 'Figure how we are being called for decoration' #NEWLINE# self . args = [ ] #NEWLINE# self . kwargs = { #NEWLINE# #INDENT# #NEWLINE# #UNINDENT# } #NEWLINE# if ( ( len ( args ) == 1 ) and ( not kwargs ) and ( inspect . isclass ( args [ 0 ] ) or isinstance ( args [ 0 ] , collections . Callable ) ) ) : #NEWLINE# #INDENT# self . _thing = args [ 0 ] #NEWLINE# self . _mimic ( ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# self . args = args #NEWLINE# self . kwargs = kwargs