Author: bugman
Date: Mon Jan 26 15:19:18 2015
New Revision: 27307

URL: http://svn.gna.org/viewcvs/relax?rev=27307&view=rev
Log:
Python 3 fix for the lib.sequence module.

The string.upper() function no longer exists.


Modified:
    trunk/lib/sequence.py

Modified: trunk/lib/sequence.py
URL: 
http://svn.gna.org/viewcvs/relax/trunk/lib/sequence.py?rev=27307&r1=27306&r2=27307&view=diff
==============================================================================
--- trunk/lib/sequence.py       (original)
+++ trunk/lib/sequence.py       Mon Jan 26 15:19:18 2015
@@ -24,7 +24,6 @@
 """Module for handling the molecule, residue, and spin sequence data."""
 
 # Python module imports.
-from string import upper
 import sys
 from warnings import warn
 
@@ -74,7 +73,7 @@
     """
 
     # Convert to uppercase.
-    upper_code = upper(code)
+    upper_code = code.upper()
 
     # The code exists.
     if upper_code in AA_CODES:


_______________________________________________
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