restore compatibilty with python 2.5 for ui TTY
threading.currentThread() used an accessor to get its name. Signed-off-by: Nicolas Sebrecht <nicolas.s-dev@laposte.net>
This commit is contained in:
parent
45e0b233a5
commit
72d05bac09
@ -19,6 +19,8 @@ Changes
|
|||||||
Bug Fixes
|
Bug Fixes
|
||||||
---------
|
---------
|
||||||
|
|
||||||
|
* Restore compatibiliy with python 2.5.
|
||||||
|
|
||||||
|
|
||||||
Pending for the next major release
|
Pending for the next major release
|
||||||
==================================
|
==================================
|
||||||
|
@ -37,7 +37,10 @@ class TTYUI(UIBase):
|
|||||||
#if the next output comes from a different thread than our last one
|
#if the next output comes from a different thread than our last one
|
||||||
#add the info.
|
#add the info.
|
||||||
#Most look like 'account sync foo' or 'Folder sync foo'.
|
#Most look like 'account sync foo' or 'Folder sync foo'.
|
||||||
threadname = currentThread().name
|
try:
|
||||||
|
threadname = currentThread().name
|
||||||
|
except AttributeError:
|
||||||
|
threadname = currentThread().getName()
|
||||||
if (threadname == s._lastThreaddisplay):
|
if (threadname == s._lastThreaddisplay):
|
||||||
print " %s" % msg
|
print " %s" % msg
|
||||||
else:
|
else:
|
||||||
|
Loading…
Reference in New Issue
Block a user