fix import

This commit is contained in:
j 2018-08-07 14:07:45 +01:00
parent b7a18203ac
commit 9e3c8291b6

View file

@ -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)