signals: whitespace fixes
This commit is contained in:
@@ -20,6 +20,7 @@ the ability to be intercepted, which lets Dispatchers re-route signals
|
|||||||
back to the main process.
|
back to the main process.
|
||||||
"""
|
"""
|
||||||
|
|
||||||
|
|
||||||
class Signal(object):
|
class Signal(object):
|
||||||
"""A mechanism for registering functions to be called whenever
|
"""A mechanism for registering functions to be called whenever
|
||||||
some specified event happens. This object is designed to work with
|
some specified event happens. This object is designed to work with
|
||||||
@@ -93,6 +94,7 @@ class Signal(object):
|
|||||||
# force pickled signals to redirect to existing signals
|
# force pickled signals to redirect to existing signals
|
||||||
def __getstate__(self):
|
def __getstate__(self):
|
||||||
return self.fullname
|
return self.fullname
|
||||||
|
|
||||||
def __setstate__(self, fullname):
|
def __setstate__(self, fullname):
|
||||||
for attr in dir(self.signals[fullname]):
|
for attr in dir(self.signals[fullname]):
|
||||||
if attr.startswith('_'):
|
if attr.startswith('_'):
|
||||||
|
|||||||
Reference in New Issue
Block a user