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

rhymes at codespeak.net rhymes at codespeak.net
Sat Aug 5 22:46:39 CEST 2006


Author: rhymes
Date: Sat Aug  5 22:46:37 2006
New Revision: 31048

Modified:
   pypy/dist/pypy/module/bz2/interp_bz2.py
Log:
mode_char is never equals 0. fixed it.

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	Sat Aug  5 22:46:37 2006
@@ -359,7 +359,7 @@
                 raise OperationError(self.space.w_ValueError,
                     self.space.wrap("invalid mode char %s" % mode))
         
-        if mode_char == 0:
+        if mode_char == "":
             mode_char = 'r'
         mode = ('wb', 'rb')[mode_char == 'r']
         



More information about the Pypy-commit mailing list