def callLater_weakly(delay, func, *args, **kwargs):
 warnings.warn('deprecated', DeprecationWarning)
 def cleanup(weakmeth, thedeadweakref):
  if weakmeth.callId.active():
   weakmeth.callId.cancel()
 weakmeth = WeakMethod(func, callback=cleanup)
 weakmeth.callId = reactor.callLater(delay, weakmeth, *args, **kwargs)
 return weakmeth

def callLater_weakly ( delay , func , * args , ** kwargs ) : warnings . warn ( 'deprecated' , DeprecationWarning ) def cleanup ( weakmeth , thedeadweakref ) : if weakmeth . callId . active ( ) : weakmeth . callId . cancel ( ) weakmeth = WeakMethod ( func , callback = cleanup ) weakmeth . callId = reactor . callLater ( delay , weakmeth , * args , ** kwargs ) return weakmeth
call func later .