Author: bugman
Date: Thu Sep 4 16:40:11 2014
New Revision: 25633
URL: http://svn.gna.org/viewcvs/relax?rev=25633&view=rev
Log:
Python 3 fix.
The cmp(v1, v2) notation in the dep_check.version_comparison() function has
been replaced with
(v1 > v2) - (v1 < v2). This allows relax to run on Python 3.
Modified:
tags/3.3.0/dep_check.py
Modified: tags/3.3.0/dep_check.py
URL:
http://svn.gna.org/viewcvs/relax/tags/3.3.0/dep_check.py?rev=25633&r1=25632&r2=25633&view=diff
==============================================================================
--- tags/3.3.0/dep_check.py (original)
+++ tags/3.3.0/dep_check.py Thu Sep 4 16:40:11 2014
@@ -59,7 +59,7 @@
version2 = [int(val) for val in version2.split('.')]
# Return the comparison.
- return cmp(version1, version2)
+ return (version1 > version2) - (version1 < version2)
# Essential packages.
_______________________________________________
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