[pypy-svn] r26890 - pypy/dist/pypy/interpreter
arigo at codespeak.net
arigo at codespeak.net
Sat May 6 20:34:53 CEST 2006
Author: arigo
Date: Sat May 6 20:34:52 2006
New Revision: 26890
Modified:
pypy/dist/pypy/interpreter/pycompiler.py
Log:
(pedronis, arigo) Fix strange except:. (thanks fijal)
Modified: pypy/dist/pypy/interpreter/pycompiler.py
==============================================================================
--- pypy/dist/pypy/interpreter/pycompiler.py (original)
+++ pypy/dist/pypy/interpreter/pycompiler.py Sat May 6 20:34:52 2006
@@ -238,11 +238,8 @@
except SyntaxError, e:
raise OperationError(space.w_SyntaxError,
e.wrap_info(space, filename))
- except ValueError,e:
- raise OperationError(space.w_ValueError,space.wrap(str(e)))
- except TypeError,e:
- raise
- raise OperationError(space.w_TypeError,space.wrap(str(e)))
+ except (ValueError, TypeError), e:
+ raise OperationError(space.w_SystemError, space.wrap(str(e)))
assert isinstance(c,PyCode)
return c
More information about the Pypy-commit
mailing list