mirror of
https://github.com/chatmail/core.git
synced 2026-04-05 23:22:11 +03:00
apply black with new line-length == 120
This commit is contained in:
@@ -19,16 +19,12 @@ class ImexTracker:
|
||||
elif ffi_event.name == "DC_EVENT_IMEX_FILE_WRITTEN":
|
||||
self._imex_events.put(ffi_event.data2)
|
||||
|
||||
def wait_progress(
|
||||
self, target_progress, progress_upper_limit=1000, progress_timeout=60
|
||||
):
|
||||
def wait_progress(self, target_progress, progress_upper_limit=1000, progress_timeout=60):
|
||||
while True:
|
||||
ev = self._imex_events.get(timeout=progress_timeout)
|
||||
if isinstance(ev, int) and ev >= target_progress:
|
||||
assert ev <= progress_upper_limit, (
|
||||
str(ev)
|
||||
+ " exceeded upper progress limit "
|
||||
+ str(progress_upper_limit)
|
||||
str(ev) + " exceeded upper progress limit " + str(progress_upper_limit)
|
||||
)
|
||||
return ev
|
||||
if ev == 0:
|
||||
|
||||
Reference in New Issue
Block a user