mailr17591 - /trunk/status.py


Others Months | Index by Date | Thread Index
>>   [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Header


Content

Posted by edward on September 28, 2012 - 11:45:
Author: bugman
Date: Fri Sep 28 11:45:14 2012
New Revision: 17591

URL: http://svn.gna.org/viewcvs/relax?rev=17591&view=rev
Log:
Python 3 preparations - the use of the queue module in the status module is 
now compatible with 2 and 3.


Modified:
    trunk/status.py

Modified: trunk/status.py
URL: 
http://svn.gna.org/viewcvs/relax/trunk/status.py?rev=17591&r1=17590&r2=17591&view=diff
==============================================================================
--- trunk/status.py (original)
+++ trunk/status.py Fri Sep 28 11:45:14 2012
@@ -26,7 +26,10 @@
 from os import F_OK, access
 from os.path import sep
 import platform
-from Queue import Queue
+try:
+    from queue import Queue
+except ImportError:
+    from Queue import Queue
 from re import search
 from string import split
 import sys




Related Messages


Powered by MHonArc, Updated Fri Sep 28 12:00:03 2012