Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
def call_soon(self, p, *args, **kwargs):
p = ppartial(p, *args, **kwargs)
if self.hub:
return self.hub.call_soon(p)
self._pending_operations.append(p)
return p
def call_soon(self, p, *args, **kwargs):
p = ppartial(p, *args, **kwargs)
if self.hub:
return self.hub.call_soon(p)
self._pending_operations.append(p)
return p