diff options
author | Maxime “pep” Buquet <pep@bouah.net> | 2020-04-04 00:20:57 +0200 |
---|---|---|
committer | Maxime “pep” Buquet <pep@bouah.net> | 2020-04-04 00:20:57 +0200 |
commit | 01a1d4441ef6e56afe7f0c6d5d6c3c10acd9d351 (patch) | |
tree | 6e4dc06e72844e221a0243ecbd6621cb70bfc134 /plugins | |
parent | ea53698fd756708108c16a3361ab1993574fd23f (diff) | |
download | poezio-01a1d4441ef6e56afe7f0c6d5d6c3c10acd9d351.tar.gz poezio-01a1d4441ef6e56afe7f0c6d5d6c3c10acd9d351.tar.bz2 poezio-01a1d4441ef6e56afe7f0c6d5d6c3c10acd9d351.tar.xz poezio-01a1d4441ef6e56afe7f0c6d5d6c3c10acd9d351.zip |
plugin/display_corrections: prefer generator to list when looping
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
Diffstat (limited to 'plugins')
-rw-r--r-- | plugins/display_corrections.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/display_corrections.py b/plugins/display_corrections.py index e9e8a2e4..99982ec9 100644 --- a/plugins/display_corrections.py +++ b/plugins/display_corrections.py @@ -43,7 +43,7 @@ class Plugin(BasePlugin): messages = self.api.get_conversation_messages() if not messages: return None - for message in messages[::-1]: + for message in reversed(messages): if message.old_message: if nb == 1: return message |