diff options
author | toonn <toonn@toonn.io> | 2021-08-27 19:43:04 +0200 |
---|---|---|
committer | toonn <toonn@toonn.io> | 2021-08-27 19:43:04 +0200 |
commit | dbf2144903cd903c357324cc5dd18588a6543d31 (patch) | |
tree | db4a5edaa56e6ecac8896d07cb3cddccba224d52 | |
parent | ba3a7685a3e658b25353ebae659c3717ed10daea (diff) | |
download | ranger-dbf2144903cd903c357324cc5dd18588a6543d31.tar.gz |
signals: Use literals
-rw-r--r-- | ranger/ext/signals.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ranger/ext/signals.py b/ranger/ext/signals.py index 0973249c..8d3f84c9 100644 --- a/ranger/ext/signals.py +++ b/ranger/ext/signals.py @@ -106,14 +106,14 @@ class SignalDispatcher(object): """This abstract class handles the binding and emitting of signals.""" def __init__(self): - self._signals = dict() + self._signals = {} def signal_clear(self): """Remove all signals.""" for handler_list in self._signals.values(): for handler in handler_list: handler.function = None - self._signals = dict() + self._signals = {} def signal_bind(self, signal_name, function, priority=0.5, weak=False, autosort=True): """Bind a function to the signal. |