fix import
This commit is contained in:
parent
b7a18203ac
commit
9e3c8291b6
1 changed files with 1 additions and 1 deletions
|
@ -6,6 +6,7 @@ import gzip
|
||||||
import os
|
import os
|
||||||
import shutil
|
import shutil
|
||||||
import sys
|
import sys
|
||||||
|
import time
|
||||||
|
|
||||||
from six.moves import http_cookiejar as cookielib
|
from six.moves import http_cookiejar as cookielib
|
||||||
from six import BytesIO, PY2
|
from six import BytesIO, PY2
|
||||||
|
@ -160,7 +161,6 @@ class API(object):
|
||||||
f = open(filename, 'rb')
|
f = open(filename, 'rb')
|
||||||
fsize = os.stat(filename).st_size
|
fsize = os.stat(filename).st_size
|
||||||
done = 0
|
done = 0
|
||||||
start = time.mktime(time.localtime())
|
|
||||||
if 'offset' in data and data['offset'] < fsize:
|
if 'offset' in data and data['offset'] < fsize:
|
||||||
done = data['offset']
|
done = data['offset']
|
||||||
f.seek(done)
|
f.seek(done)
|
||||||
|
|
Loading…
Reference in a new issue