[pypy-svn] r61337 - pypy/trunk/pypy/lib
afa at codespeak.net
afa at codespeak.net
Sun Jan 25 22:58:58 CET 2009
Author: afa
Date: Sun Jan 25 22:58:57 2009
New Revision: 61337
Modified:
pypy/trunk/pypy/lib/resource.py
Log:
"import resource" should raise ImportError on Windows.
CPython does not even compile this module.
Modified: pypy/trunk/pypy/lib/resource.py
==============================================================================
--- pypy/trunk/pypy/lib/resource.py (original)
+++ pypy/trunk/pypy/lib/resource.py Sun Jan 25 22:58:57 2009
@@ -1,3 +1,7 @@
+import sys
+if sys.platform == 'win32':
+ raise ImportError('resource module not available for win32')
+
from ctypes_support import standard_c_lib as libc
from ctypes_support import get_errno
from ctypes import Structure, c_int, c_long, byref
More information about the Pypy-commit
mailing list