just import print_function
This commit is contained in:
parent
8ce2e3149a
commit
a43de715ed
1 changed files with 2 additions and 4 deletions
|
@ -1,6 +1,7 @@
|
||||||
# -*- coding: utf-8 -*-
|
# -*- coding: utf-8 -*-
|
||||||
# vi:si:et:sw=4:sts=4:ts=4
|
# vi:si:et:sw=4:sts=4:ts=4
|
||||||
# GPL 2011
|
# GPL 2011
|
||||||
|
from __future__ import print_function
|
||||||
from types import MethodType
|
from types import MethodType
|
||||||
import gzip
|
import gzip
|
||||||
import os
|
import os
|
||||||
|
@ -183,10 +184,7 @@ class API(object):
|
||||||
print("\ninterrupted by user.")
|
print("\ninterrupted by user.")
|
||||||
sys.exit(1)
|
sys.exit(1)
|
||||||
except:
|
except:
|
||||||
try:
|
|
||||||
print("uploading chunk failed, will try again in 5 seconds\r", end='')
|
print("uploading chunk failed, will try again in 5 seconds\r", end='')
|
||||||
except:
|
|
||||||
print("uploading chunk failed, will try again in 5 seconds\r")
|
|
||||||
sys.stdout.flush()
|
sys.stdout.flush()
|
||||||
data = {'result': -1}
|
data = {'result': -1}
|
||||||
time.sleep(5)
|
time.sleep(5)
|
||||||
|
|
Loading…
Reference in a new issue