#NEWLINE# def _function( self , attr , name = None , _function = None ) : #NEWLINE# #INDENT# if ( ( name is None ) and ( _function is None ) ) : #NEWLINE# #INDENT# def dec( func ) : #NEWLINE# #INDENT# return self . _new_function ( attr , func ) #NEWLINE# #UNINDENT# return dec #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# if ( ( name is not None ) and ( _function is None ) ) : #NEWLINE# #INDENT# if callable ( name ) : #NEWLINE# #INDENT# return self . _new_function ( attr , name ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# def dec( func ) : #NEWLINE# #INDENT# return self . _function ( attr , name , func ) #NEWLINE# #UNINDENT# return dec #NEWLINE# #UNINDENT# #UNINDENT# else : #NEWLINE# #INDENT# if ( ( name is not None ) and ( _function is not None ) ) : #NEWLINE# #INDENT# return self . _new_function ( attr , _function , dec ) #NEWLINE# #UNINDENT# #UNINDENT# #UNINDENT# raise RuntimeError ( 'Invalid parameters' )