[pypy-svn] r76588 - pypy/branch/fast-ctypes/pypy/rlib
getxsick at codespeak.net
getxsick at codespeak.net
Wed Aug 11 16:40:15 CEST 2010
Author: getxsick
Date: Wed Aug 11 16:40:14 2010
New Revision: 76588
Modified:
pypy/branch/fast-ctypes/pypy/rlib/rjitffi.py
Log:
raise OSError in correct way
Modified: pypy/branch/fast-ctypes/pypy/rlib/rjitffi.py
==============================================================================
--- pypy/branch/fast-ctypes/pypy/rlib/rjitffi.py (original)
+++ pypy/branch/fast-ctypes/pypy/rlib/rjitffi.py Wed Aug 11 16:40:14 2010
@@ -32,7 +32,7 @@
try:
self.handler = rdynload.dlopen(name_ptr)
except rdynload.DLOpenError, e:
- raise OSError('%s: %s', name, e.msg or 'unspecified error')
+ raise OSError(-1, '%s: %s' % (name, e.msg or 'unspecified error'))
finally:
rffi.free_charp(name_ptr)
More information about the Pypy-commit
mailing list