mailr25633 - /tags/3.3.0/dep_check.py


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

Header


Content

Posted by edward on September 04, 2014 - 16:40:
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.




Related Messages


Powered by MHonArc, Updated Thu Sep 04 17:00:02 2014