reverse in a single line

pull/3330/head
Tomer Shalev 2022-08-07 08:56:25 +03:00
parent 3c22ae161c
commit 0c3951b864
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 = actions.items()
revactions.reverse()
revactions = reversed(actions.items())
for name, action in revactions:
try:
action.stop()