[pypy-svn] r16193 - pypy/dist/pypy/rpython
pedronis at codespeak.net
pedronis at codespeak.net
Mon Aug 22 13:13:58 CEST 2005
Author: pedronis
Date: Mon Aug 22 13:13:56 2005
New Revision: 16193
Modified:
pypy/dist/pypy/rpython/exceptiondata.py
Log:
re-attach standardexceptions to ExceptionData as a class attribute
Modified: pypy/dist/pypy/rpython/exceptiondata.py
==============================================================================
--- pypy/dist/pypy/rpython/exceptiondata.py (original)
+++ pypy/dist/pypy/rpython/exceptiondata.py Mon Aug 22 13:13:56 2005
@@ -8,6 +8,7 @@
class ExceptionData:
"""Public information for the code generators to help with exceptions."""
+ standardexceptions = standardexceptions
def __init__(self, rtyper):
self.make_standard_exceptions(rtyper)
@@ -32,7 +33,7 @@
def make_standard_exceptions(self, rtyper):
bk = rtyper.annotator.bookkeeper
- for cls in standardexceptions:
+ for cls in self.standardexceptions:
classdef = bk.getclassdef(cls)
rclass.getclassrepr(rtyper, classdef).setup()
@@ -69,7 +70,7 @@
if (clsdef and clsdef.cls is not Exception
and issubclass(clsdef.cls, Exception)):
cls = clsdef.cls
- if cls in standardexceptions:
+ if cls in self.standardexceptions:
is_standard = True
assert not clsdef.attrs, (
"%r should not have grown atributes" % (cls,))
More information about the Pypy-commit
mailing list