diff options
author | hut <hut@lavabit.com> | 2011-10-08 00:18:13 +0200 |
---|---|---|
committer | hut <hut@lavabit.com> | 2011-10-08 00:18:13 +0200 |
commit | 28f897c7feafa3a85833c6269eed813829583379 (patch) | |
tree | a73c895d9b439bc15b8a885a0a36e6425d70487f /ranger | |
parent | 5603e0fa3efc1c21c2b05570f1c345b64ad26876 (diff) | |
download | ranger-28f897c7feafa3a85833c6269eed813829583379.tar.gz |
ext.signals: fixed signals for python3.2
Diffstat (limited to 'ranger')
-rw-r--r-- | ranger/ext/signals.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/ranger/ext/signals.py b/ranger/ext/signals.py index f9cdf9f0..d885dd06 100644 --- a/ranger/ext/signals.py +++ b/ranger/ext/signals.py @@ -255,11 +255,11 @@ class SignalDispatcher(object): # propagate for handler in tuple(handlers): if handler.active: - if isinstance(handler._function, tuple): - fnc = MethodType(*handler._function) - else: - fnc = handler._function try: + if isinstance(handler._function, tuple): + fnc = MethodType(*handler._function) + else: + fnc = handler._function if handler._pass_signal: fnc(signal) else: |