Author: bugman
Date: Fri Feb 20 16:16:02 2015
New Revision: 27707

URL: http://svn.gna.org/viewcvs/relax?rev=27707&view=rev
Log:
Python 3 fix for the new internal structural object MolContainer._sort() method.

The list() builtin function is required to convert the output of the range() 
function into a true
list in Python 3, so that the list.sort() method can be accessed.


Modified:
    trunk/lib/structure/internal/molecules.py

Modified: trunk/lib/structure/internal/molecules.py
URL: 
http://svn.gna.org/viewcvs/relax/trunk/lib/structure/internal/molecules.py?rev=27707&r1=27706&r2=27707&view=diff
==============================================================================
--- trunk/lib/structure/internal/molecules.py   (original)
+++ trunk/lib/structure/internal/molecules.py   Fri Feb 20 16:16:02 2015
@@ -259,7 +259,7 @@
         """Sort all structural data."""
 
         # Create an index list for sorting the structural data.
-        indices = range(len(self.atom_name))
+        indices = list(range(len(self.atom_name)))
         indices.sort(key=self._sort_key)
 
         # Sort all lists.


_______________________________________________
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