def resig(app, what, name, obj, options, signature, return_annotation):
 docobj = getattr(obj, '__docobj__', None)
 if (docobj is not None):
  argspec = inspect.getargspec(docobj)
  if (argspec[0] and (argspec[0][0] in ('cls', 'self'))):
   del argspec[0][0]
  signature = inspect.formatargspec(*argspec)
 return (signature, return_annotation)

def resig ( app , what , name , obj , options , signature , return_annotation ) : docobj = getattr ( obj , '__docobj__' , None ) if ( docobj is not None ) : argspec = inspect . getargspec ( docobj ) if ( argspec [ 0 ] and ( argspec [ 0 ] [ 0 ] in ( 'cls' , 'self' ) ) ) : del argspec [ 0 ] [ 0 ] signature = inspect . formatargspec ( * argspec ) return ( signature , return_annotation )
allow for preservation of @action_method decorated methods in configurator .