mailr18900 - /trunk/generic_fns/structure/internal.py


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

Header


Content

Posted by edward on March 19, 2013 - 18:38:
Author: bugman
Date: Tue Mar 19 18:38:51 2013
New Revision: 18900

URL: http://svn.gna.org/viewcvs/relax?rev=18900&view=rev
Log:
Python 3 fix for an import into the generic_fns.structure.internal module.


Modified:
    trunk/generic_fns/structure/internal.py

Modified: trunk/generic_fns/structure/internal.py
URL: 
http://svn.gna.org/viewcvs/relax/trunk/generic_fns/structure/internal.py?rev=18900&r1=18899&r2=18900&view=diff
==============================================================================
--- trunk/generic_fns/structure/internal.py (original)
+++ trunk/generic_fns/structure/internal.py Tue Mar 19 18:38:51 2013
@@ -27,7 +27,7 @@
 from numpy import array, dot, float64, linalg, zeros
 import os
 from os import F_OK, access
-from string import digits, uppercase
+from string import digits, ascii_uppercase
 from warnings import warn
 
 # relax module imports.
@@ -677,7 +677,7 @@
 
         # Convert to the molecule index.
         if chain_id:
-            mol_index = uppercase.index(chain_id)
+            mol_index = ascii_uppercase.index(chain_id)
 
         # Return the index.
         return mol_index




Related Messages


Powered by MHonArc, Updated Tue Mar 19 19:00:02 2013