mailr26524 - /trunk/lib/errors.py


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

Header


Content

Posted by edward on November 11, 2014 - 15:52:
Author: bugman
Date: Tue Nov 11 15:52:43 2014
New Revision: 26524

URL: http://svn.gna.org/viewcvs/relax?rev=26524&view=rev
Log:
The lib.errors module is now importing lib.compat.pickle for better Python 2 
and 3 support.

This shifts the compatibility code from lib.errors into lib.compat so that 
the 2to3 program will not
touch the lib.errors module.


Modified:
    trunk/lib/errors.py

Modified: trunk/lib/errors.py
URL: 
http://svn.gna.org/viewcvs/relax/trunk/lib/errors.py?rev=26524&r1=26523&r2=26524&view=diff
==============================================================================
--- trunk/lib/errors.py (original)
+++ trunk/lib/errors.py Tue Nov 11 15:52:43 2014
@@ -33,13 +33,10 @@
 from re import match
 import sys
 import time
-try:
-    import cPickle as pickle
-except:
-    import pickle
 
 # relax module imports.
 from lib import ansi
+from lib.compat import pickle
 
 
 # Module variables for changing the behaviour of the warning system.




Related Messages


Powered by MHonArc, Updated Tue Nov 11 16:00:02 2014