Merge pull request #3330 from tomers/reverse-in-a-single-line

Reverse in a single line
pull/3336/head
Sergey G. Brester 2022-08-09 17:23:18 +02:00 committed by GitHub
commit 92d5455bdd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 3 deletions

View File

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