happy python lint

This commit is contained in:
dignifiedquire
2020-03-25 17:56:35 +01:00
parent 97951aec15
commit f8cd602cbd
4 changed files with 13 additions and 11 deletions

View File

@@ -569,13 +569,13 @@ class IOThreads:
# Make sure the current
self._start_one_thread("deltachat-log", self.dc_thread_run)
def is_started(self):
return lib.dc_is_open(self._dc_context) and lib.dc_is_running(self._dc_context)
return lib.dc_is_open(self._dc_context) and lib.dc_is_running(self._dc_context)
def start(self, imap=True, smtp=True, mvbox=False, sentbox=False):
assert not self.is_started()
lib.dc_context_run(self._dc_context)
def _start_one_thread(self, name, func):
@@ -606,6 +606,7 @@ class IOThreads:
self._log_event("py-bindings-info", 0, "DC LOG THREAD FINISHED")
def _destroy_dc_context(dc_context, dc_context_unref=lib.dc_context_unref):
# destructor for dc_context
dc_context_unref(dc_context)