[pypy-svn] r31381 - pypy/dist/pypy/module/bz2

rhymes at codespeak.net rhymes at codespeak.net
Thu Aug 17 19:36:23 CEST 2006


Author: rhymes
Date: Thu Aug 17 19:36:20 2006
New Revision: 31381

Modified:
   pypy/dist/pypy/module/bz2/interp_bz2.py
Log:
fix readlines for real. now it fails badly at gcc compiling stage but is better then before...

Modified: pypy/dist/pypy/module/bz2/interp_bz2.py
==============================================================================
--- pypy/dist/pypy/module/bz2/interp_bz2.py	(original)
+++ pypy/dist/pypy/module/bz2/interp_bz2.py	Thu Aug 17 19:36:20 2006
@@ -671,7 +671,7 @@
                 break
             lines.append(line)
         
-        return self.space.newtuple(lines)
+        return self.space.newlist([self.space.wrap(i) for i in lines])
     readlines.unwrap_spec = ['self', int]
     
     def write(self, data):



More information about the Pypy-commit mailing list