[pypy-svn] r32517 - pypy/branch/timeshift-refactoring/pypy/module/mmap

arigo at codespeak.net arigo at codespeak.net
Wed Sep 20 09:54:56 CEST 2006


Author: arigo
Date: Wed Sep 20 09:54:55 2006
New Revision: 32517

Modified:
   pypy/branch/timeshift-refactoring/pypy/module/mmap/interp_mmap.py
Log:
Fix in the Windows part of the code.  Now let's wait tomorrow for
Scott's automated test runner and see what's my next bug :-)



Modified: pypy/branch/timeshift-refactoring/pypy/module/mmap/interp_mmap.py
==============================================================================
--- pypy/branch/timeshift-refactoring/pypy/module/mmap/interp_mmap.py	(original)
+++ pypy/branch/timeshift-refactoring/pypy/module/mmap/interp_mmap.py	Wed Sep 20 09:54:55 2006
@@ -181,7 +181,7 @@
         dwErr = GetLastError()
         if low.value == INVALID_FILE_SIZE and dwErr != NO_ERROR:
             raise OperationError(space.w_EnvironmentError,
-                                 space.wrap(_get_error_msg(dwErr)))
+                                 space.wrap(os.strerror(dwErr)))
         return low.value, high.value
 
     def _get_error_msg():



More information about the Pypy-commit mailing list