[pypy-svn] r57078 - pypy/branch/isinstance-refactor/pypy/objspace/flow

arigo at codespeak.net arigo at codespeak.net
Thu Aug 7 19:13:49 CEST 2008


Author: arigo
Date: Thu Aug  7 19:13:41 2008
New Revision: 57078

Modified:
   pypy/branch/isinstance-refactor/pypy/objspace/flow/objspace.py
Log:
Fix the flow object space (by killing code, yay)


Modified: pypy/branch/isinstance-refactor/pypy/objspace/flow/objspace.py
==============================================================================
--- pypy/branch/isinstance-refactor/pypy/objspace/flow/objspace.py	(original)
+++ pypy/branch/isinstance-refactor/pypy/objspace/flow/objspace.py	Thu Aug  7 19:13:41 2008
@@ -194,20 +194,6 @@
         from pypy.objspace.flow import specialcase
         specialcase.setup(self)
 
-    def exception_match(self, w_exc_type, w_check_class):
-        try:
-            check_class = self.unwrap(w_check_class)
-        except UnwrapException:
-            raise Exception, "non-constant except guard"
-        if not isinstance(check_class, tuple):
-            # the simple case
-            return ObjSpace.exception_match(self, w_exc_type, w_check_class)
-        # checking a tuple of classes
-        for w_klass in self.unpacktuple(w_check_class):
-            if ObjSpace.exception_match(self, w_exc_type, w_klass):
-                return True
-        return False
-
     def getconstclass(space, w_cls):
         try:
             ecls = space.unwrap(w_cls)



More information about the Pypy-commit mailing list