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 shutil
import sys
import time
from six.moves import http_cookiejar as cookielib
from six import BytesIO, PY2
@ -160,7 +161,6 @@ class API(object):
f = open(filename, 'rb')
fsize = os.stat(filename).st_size
done = 0
start = time.mktime(time.localtime())
if 'offset' in data and data['offset'] < fsize:
done = data['offset']
f.seek(done)