def reportDeprecatedWorkerNameUsage(message, stacklevel=None, filename=None, lineno=None):
 if (filename is None):
  if (stacklevel is None):
   stacklevel = 3
  else:
   stacklevel += 2
  warnings.warn(DeprecatedWorkerNameWarning(message), None, stacklevel)
 else:
  assert (stacklevel is None)
  if (lineno is None):
   lineno = 0
  warnings.warn_explicit(DeprecatedWorkerNameWarning(message), DeprecatedWorkerNameWarning, filename, lineno)

def reportDeprecatedWorkerNameUsage ( message , stacklevel = None , filename = None , lineno = None ) : if ( filename is None ) : if ( stacklevel is None ) : stacklevel = 3 else : stacklevel += 2 warnings . warn ( DeprecatedWorkerNameWarning ( message ) , None , stacklevel ) else : assert ( stacklevel is None ) if ( lineno is None ) : lineno = 0 warnings . warn_explicit ( DeprecatedWorkerNameWarning ( message ) , DeprecatedWorkerNameWarning , filename , lineno )
hook that is ran when old api name is used .