[pypy-svn] r30536 - pypy/dist/pypy/module/mmap
rhymes at codespeak.net
rhymes at codespeak.net
Tue Jul 25 19:21:05 CEST 2006
Author: rhymes
Date: Tue Jul 25 19:20:57 2006
New Revision: 30536
Modified:
pypy/dist/pypy/module/mmap/interp_mmap.py
Log:
fix the compilation issue under FreeBSD and OSX
Modified: pypy/dist/pypy/module/mmap/interp_mmap.py
==============================================================================
--- pypy/dist/pypy/module/mmap/interp_mmap.py (original)
+++ pypy/dist/pypy/module/mmap/interp_mmap.py Tue Jul 25 19:20:57 2006
@@ -440,7 +440,9 @@
if _POSIX:
if not has_mremap:
- raise "mmap: resizing not available -- no mremap()"
+ msg = "mmap: resizing not available -- no mremap()"
+ raise OperationError(self.space.w_EnvironmentError,
+ self.space.wrap(msg))
# resize the underlying file first
res = libc.ftruncate(self._fd, newsize)
More information about the Pypy-commit
mailing list