just import print_function

This commit is contained in:
j 2018-09-18 22:37:13 +02:00
parent 8ce2e3149a
commit a43de715ed

View file

@ -1,6 +1,7 @@
# -*- coding: utf-8 -*-
# vi:si:et:sw=4:sts=4:ts=4
# GPL 2011
from __future__ import print_function
from types import MethodType
import gzip
import os
@ -183,10 +184,7 @@ class API(object):
print("\ninterrupted by user.")
sys.exit(1)
except:
try:
print("uploading chunk failed, will try again in 5 seconds\r", end='')
except:
print("uploading chunk failed, will try again in 5 seconds\r")
print("uploading chunk failed, will try again in 5 seconds\r", end='')
sys.stdout.flush()
data = {'result': -1}
time.sleep(5)