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:
parent
e7e9a8796d
commit
448e90ed3c
1 changed files with 1 additions and 1 deletions
|
@ -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)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue