[pypy-svn] r77966 - pypy/branch/fast-forward/pypy/module/_io

afa at codespeak.net afa at codespeak.net
Fri Oct 15 08:22:57 CEST 2010


Author: afa
Date: Fri Oct 15 08:22:55 2010
New Revision: 77966

Modified:
   pypy/branch/fast-forward/pypy/module/_io/interp_fileio.py
Log:
Typos


Modified: pypy/branch/fast-forward/pypy/module/_io/interp_fileio.py
==============================================================================
--- pypy/branch/fast-forward/pypy/module/_io/interp_fileio.py	(original)
+++ pypy/branch/fast-forward/pypy/module/_io/interp_fileio.py	Fri Oct 15 08:22:55 2010
@@ -9,7 +9,7 @@
     raise OperationError(space.w_ValueError, space.wrap(
         "Must have exactly one of read/write/append mode"))
 
-def decode_mode(spac, mode):
+def decode_mode(space, mode):
     flags = 0
     rwa = False
     readable = False
@@ -32,7 +32,7 @@
         elif s == 'a':
             if rwa:
                 _bad_mode(space)
-            rwa = 1
+            rwa = True
             writable = True
             flags |= os.O_CREAT
             append = True



More information about the Pypy-commit mailing list