no extra var needed for iterator

pull/3330/head
Sergey G. Brester 2 years ago committed by GitHub
parent 0c3951b864
commit aceae84be2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -305,8 +305,7 @@ class Actions(JailThread, Mapping):
""" """
if actions is None: if actions is None:
actions = self._actions actions = self._actions
revactions = reversed(actions.items()) for name, action in reversed(actions.items()):
for name, action in revactions:
try: try:
action.stop() action.stop()
except Exception as e: except Exception as e:

Loading…
Cancel
Save