mailr17728 - /trunk/relax_io.py


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

Header


Content

Posted by edward on October 07, 2012 - 21:54:
Author: bugman
Date: Sun Oct  7 21:54:24 2012
New Revision: 17728

URL: http://svn.gna.org/viewcvs/relax?rev=17728&view=rev
Log:
Removed the Python 3 byte array hack which should have been removed earlier.

This code is from r17669 which should have been removed at r17712 but was 
accidentally left out.
Instead of reverting, the code has been deleted as r17669 contained another 
useful change.


Modified:
    trunk/relax_io.py

Modified: trunk/relax_io.py
URL: 
http://svn.gna.org/viewcvs/relax/trunk/relax_io.py?rev=17728&r1=17727&r2=17728&view=diff
==============================================================================
--- trunk/relax_io.py (original)
+++ trunk/relax_io.py Sun Oct  7 21:54:24 2012
@@ -152,10 +152,6 @@
     # Create a data structure from the contents of the file split by either 
whitespace or the separator, sep.
     data = []
     for i in range(len(file_data)):
-        # Python 3 support - conversion of bytes type objects to strings.
-        if hasattr(file_data[i], 'decode'):
-            file_data[i] = file_data[i].decode()
-
         if sep:
             row = file_data[i].split(sep)
         else:




Related Messages


Powered by MHonArc, Updated Sun Oct 07 22:00:02 2012