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 -*-
|
||||
# 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")
|
||||
sys.stdout.flush()
|
||||
data = {'result': -1}
|
||||
time.sleep(5)
|
||||
|
|
Loading…
Reference in a new issue