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.


_______________________________________________
relax (http://www.nmr-relax.com)

This is the relax-commits mailing list
[email protected]

To unsubscribe from this list, get a password
reminder, or change your subscription options,
visit the list information page at
https://mail.gna.org/listinfo/relax-commits

Reply via email to