mirror of
https://github.com/bkerler/mtkclient.git
synced 2024-11-14 19:25:05 -05:00
Add async read
This commit is contained in:
commit
a3b3856fdc
2 changed files with 0 additions and 3 deletions
|
@ -25,7 +25,6 @@ def writedata(filename, rq):
|
|||
while True:
|
||||
data = rq.get()
|
||||
if data is None:
|
||||
sys.stdout.flush()
|
||||
break
|
||||
pos += len(data)
|
||||
wf.write(data)
|
||||
|
|
|
@ -2,7 +2,6 @@
|
|||
# -*- coding: utf-8 -*-
|
||||
# (c) B.Kerler 2018-2021 GPLv3 License
|
||||
import logging
|
||||
import sys
|
||||
import time
|
||||
import os
|
||||
import hashlib
|
||||
|
@ -26,7 +25,6 @@ def writedata(filename, rq):
|
|||
while True:
|
||||
data = rq.get()
|
||||
if data is None:
|
||||
sys.stdout.flush()
|
||||
break
|
||||
pos += len(data)
|
||||
wf.write(data)
|
||||
|
|
Loading…
Reference in a new issue