1
0
Fork 0
mirror of https://github.com/deltachat/deltachat-core.git synced 2025-10-04 18:29:19 +02:00

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.
This commit is contained in:
Oliver Bestwalter 2019-04-11 18:43:08 +02:00
parent e7e9a8796d
commit 448e90ed3c
No known key found for this signature in database
GPG key ID: 8AF6D5F5A0469150

View file

@ -403,7 +403,7 @@ class EventLogger:
def _log_event(self, evt_name, data1, data2): def _log_event(self, evt_name, data1, data2):
# don't show events that are anyway empty impls now # 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 return
if self._debug: if self._debug:
evpart = "{}({!r},{!r})".format(evt_name, data1, data2) evpart = "{}({!r},{!r})".format(evt_name, data1, data2)