def notrace(*args, **kwds):
 def decorator(func):
  return func
 arg0 = ((len(args) and args[0]) or None)
 if (callable(arg0) or (type(arg0) in (classmethod, staticmethod))):
  return decorator(arg0)
 else:
  return decorator

def notrace ( * args , ** kwds ) : def decorator ( func ) : return func arg0 = ( ( len ( args ) and args [ 0 ] ) or None ) if ( callable ( arg0 ) or ( type ( arg0 ) in ( classmethod , staticmethod ) ) ) : return decorator ( arg0 ) else : return decorator
just a no-op in case tracing is disabled .