From 51b908348e16125c458b7b5d0a97839085b1d83f Mon Sep 17 00:00:00 2001 From: Emmanuel Gil Peyrot Date: Fri, 21 Jul 2017 16:29:07 +0100 Subject: Simplify double negation. --- poezio/core/handlers.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/poezio/core/handlers.py b/poezio/core/handlers.py index 9fe42a0d..e38fcbda 100644 --- a/poezio/core/handlers.py +++ b/poezio/core/handlers.py @@ -315,7 +315,7 @@ class HandlerCore: delayed, date = common.find_delayed_tag(message) def try_modify(): - if not message.xml.find('{urn:xmpp:message-correct:0}replace') is not None: + if message.xml.find('{urn:xmpp:message-correct:0}replace') is None: return False replaced_id = message['replace']['id'] if replaced_id and config.get_by_tabname('group_corrections', -- cgit v1.2.3