no extra var needed for iterator

pull/3330/head
Sergey G. Brester 2022-08-09 17:21:16 +02:00 committed by GitHub
parent 0c3951b864
commit aceae84be2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 2 deletions

View File

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