From 8499f1cbc97c55dba6d47043972569df94f6a350 Mon Sep 17 00:00:00 2001 From: mathieui Date: Sun, 27 Oct 2019 20:04:11 +0100 Subject: Fix syntax warnings (thanks python 3.8) --- poezio/core/handlers.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'poezio/core') diff --git a/poezio/core/handlers.py b/poezio/core/handlers.py index 1278e29e..fcd8d731 100644 --- a/poezio/core/handlers.py +++ b/poezio/core/handlers.py @@ -714,7 +714,7 @@ class HandlerCore: replaced = False if message.xml.find('{urn:xmpp:message-correct:0}replace') is not None: replaced_id = message['replace']['id'] - if replaced_id is not '' and config.get_by_tabname( + if replaced_id != '' and config.get_by_tabname( 'group_corrections', message['from'].bare): try: delayed_date = date or datetime.now() @@ -806,7 +806,7 @@ class HandlerCore: user = tab.parent_muc.get_user_by_name(with_nick) if message.xml.find('{urn:xmpp:message-correct:0}replace') is not None: replaced_id = message['replace']['id'] - if replaced_id is not '' and config.get_by_tabname( + if replaced_id != '' and config.get_by_tabname( 'group_corrections', room_from): try: tab.modify_message( -- cgit v1.2.3