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

rhymes at codespeak.net rhymes at codespeak.net
Thu Aug 17 19:27:21 CEST 2006


Author: rhymes
Date: Thu Aug 17 19:27:17 2006
New Revision: 31380

Modified:
   pypy/dist/pypy/module/bz2/interp_bz2.py
Log:
more fixes

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:27:17 2006
@@ -664,16 +664,14 @@
         
         # it seems size definitely ignored in CPython, so...
         lines = []
-
         while True:
             w_line = self.readline()
             line = self.space.str_w(w_line)
             if not line:
                 break
-            
             lines.append(line)
         
-        return self.space.wrap(lines)
+        return self.space.newtuple(lines)
     readlines.unwrap_spec = ['self', int]
     
     def write(self, data):
@@ -732,7 +730,7 @@
         else:
             raise OperationError(space.w_SystemError,
                 space.wrap(
-                    "Unknown newlines value 0x%s\n" % hex(self.f_newlinetypes)))
+                    "Unknown newlines value 0x%x" % self.f_newlinetypes))
     
     def fget_closed(space, self):
         return space.wrap(self.mode == MODE_CLOSED)



More information about the Pypy-commit mailing list