Author: Ronan Lamy <[email protected]>
Branch: translation-cleanup
Changeset: r57432:9f87794bc9dd
Date: 2012-09-18 15:07 +0100
http://bitbucket.org/pypy/pypy/changeset/9f87794bc9dd/

Log:    Add FSException.__init__()

diff --git a/pypy/objspace/flow/flowcontext.py 
b/pypy/objspace/flow/flowcontext.py
--- a/pypy/objspace/flow/flowcontext.py
+++ b/pypy/objspace/flow/flowcontext.py
@@ -19,6 +19,13 @@
     pass
 
 class FSException(OperationError):
+    def __init__(self, w_type, w_value, tb=None):
+        if w_type is None:
+            raise FlowingError(w_value)
+        self.w_type = w_type
+        self._w_value = w_value
+        self._application_traceback = tb
+
     def normalize_exception(self, space):
         """Normalize the OperationError.  In other words, fix w_type and/or
         w_value to make sure that the __class__ of w_value is exactly w_type.
_______________________________________________
pypy-commit mailing list
[email protected]
http://mail.python.org/mailman/listinfo/pypy-commit

Reply via email to