def reportDeprecatedWorkerModuleUsage(message, stacklevel=None):
 if (stacklevel is None):
  stacklevel = 3
 else:
  stacklevel += 2
 warnings.warn(DeprecatedWorkerModuleWarning(message), None, stacklevel)

def reportDeprecatedWorkerModuleUsage ( message , stacklevel = None ) : if ( stacklevel is None ) : stacklevel = 3 else : stacklevel += 2 warnings . warn ( DeprecatedWorkerModuleWarning ( message ) , None , stacklevel )
hook that is ran when old api module is used .