mailr17620 - /trunk/float.py


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

Header


Content

Posted by edward on September 28, 2012 - 19:13:
Author: bugman
Date: Fri Sep 28 19:13:30 2012
New Revision: 17620

URL: http://svn.gna.org/viewcvs/relax?rev=17620&view=rev
Log:
Python 3 preparations - removal of some unneeded xrange() calls.


Modified:
    trunk/float.py

Modified: trunk/float.py
URL: 
http://svn.gna.org/viewcvs/relax/trunk/float.py?rev=17620&r1=17619&r2=17620&view=diff
==============================================================================
--- trunk/float.py (original)
+++ trunk/float.py Fri Sep 28 19:13:30 2012
@@ -681,7 +681,7 @@
 
     # Convert the bit pattern into a byte array (of integers).
     bytes = []
-    for i in xrange(8):
+    for i in range(8):
         bytes.append(bitpatternToInt(string[i*8:i*8+8], 
endian=sys.byteorder))
 
     # Pack the byte array into a float and return it.
@@ -716,7 +716,7 @@
 
     # Calculate the integer corresponding to the string.
     int_val = 0
-    for i in xrange(len(string)):
+    for i in range(len(string)):
         if int(string[i]):
             int_val = int_val + 2**i
 




Related Messages


Powered by MHonArc, Updated Fri Sep 28 19:20:02 2012