[pypy-commit] pypy py3k: restore OperationError.clear() from 35c013f9b1a5, it's called from executioncontext.py
antocuni
noreply at buildbot.pypy.org
Mon Feb 20 20:10:58 CET 2012
Author: Antonio Cuni <anto.cuni at gmail.com>
Branch: py3k
Changeset: r52681:26cabdd62e5b
Date: 2012-02-20 20:10 +0100
http://bitbucket.org/pypy/pypy/changeset/26cabdd62e5b/
Log: restore OperationError.clear() from 35c013f9b1a5, it's called from
executioncontext.py
diff --git a/pypy/interpreter/error.py b/pypy/interpreter/error.py
--- a/pypy/interpreter/error.py
+++ b/pypy/interpreter/error.py
@@ -35,6 +35,13 @@
if not we_are_translated():
self.debug_excs = []
+ def clear(self, space):
+ self.w_type = space.w_None
+ self._w_value = space.w_None
+ self._application_traceback = None
+ if not we_are_translated():
+ del self.debug_excs[:]
+
def match(self, space, w_check_class):
"Check if this application-level exception matches 'w_check_class'."
return space.exception_match(self.w_type, w_check_class)
More information about the pypy-commit
mailing list