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://[email protected]/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.


_______________________________________________
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