MCPcopy
hub / github.com/celery/celery / __setitem__

Method __setitem__

celery/platforms.py:677–686  ·  view source on GitHub ↗

Install signal handler. Does nothing if the current platform has no support for signals, or the specified signal in particular.

(self, name, handler)

Source from the content-addressed store, hash-verified

675 return _signal.getsignal(self.signum(name))
676
677 def __setitem__(self, name, handler):
678 """Install signal handler.
679
680 Does nothing if the current platform has no support for signals,
681 or the specified signal in particular.
682 """
683 try:
684 _signal.signal(self.signum(name), handler)
685 except (AttributeError, ValueError):
686 pass
687
688 def update(self, _d_=None, **sigmap):
689 """Set signal handlers from a mapping."""

Callers

nothing calls this directly

Calls 1

signumMethod · 0.95

Tested by

no test coverage detected