mailr25634 - /trunk/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:41:
Author: bugman
Date: Thu Sep  4 16:41:28 2014
New Revision: 25634

URL: http://svn.gna.org/viewcvs/relax?rev=25634&view=rev
Log:
Ported r25633 from the 3.3.0 tag.

The command used was:
svn merge -r25632:25633 svn+ssh://bugman@xxxxxxxxxxx/svn/relax/tags/3.3.0 .

.....
  r25633 | bugman | 2014-09-04 16:40:11 +0200 (Thu, 04 Sep 2014) | 6 lines
  Changed paths:
     M /tags/3.3.0/dep_check.py
  
  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:
    trunk/dep_check.py

Modified: trunk/dep_check.py
URL: 
http://svn.gna.org/viewcvs/relax/trunk/dep_check.py?rev=25634&r1=25633&r2=25634&view=diff
==============================================================================
--- trunk/dep_check.py  (original)
+++ trunk/dep_check.py  Thu Sep  4 16:41:28 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