mailr27307 - /trunk/lib/sequence.py


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

Header


Content

Posted by edward on January 26, 2015 - 15:19:
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:




Related Messages


Powered by MHonArc, Updated Mon Jan 26 15:40:02 2015