From 448e90ed3c59ddc2ea6f03fe5b017c400c57799a Mon Sep 17 00:00:00 2001 From: Oliver Bestwalter Date: Thu, 11 Apr 2019 18:43:08 +0200 Subject: [PATCH] Make intention clear, rather than work by accident In the current version this was a tuple containing two elements. Now it is just a string wrapped in parentheses => simplify to just check by direct comparison. --- python/src/deltachat/account.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/python/src/deltachat/account.py b/python/src/deltachat/account.py index 963fc023..e5ccb028 100644 --- a/python/src/deltachat/account.py +++ b/python/src/deltachat/account.py @@ -403,7 +403,7 @@ class EventLogger: def _log_event(self, evt_name, data1, data2): # don't show events that are anyway empty impls now - if evt_name in ("DC_EVENT_GET_STRING"): + if evt_name == "DC_EVENT_GET_STRING": return if self._debug: evpart = "{}({!r},{!r})".format(evt_name, data1, data2)