Commits

Philip Jenvey  committed f6afbec

more StandardError killing

  • Participants
  • Parent commits 612e3a9
  • Branches py3k

Comments (0)

Files changed (5)

File pypy/interpreter/baseobjspace.py

     'OverflowError',
     'ReferenceError',
     'RuntimeError',
-    'StandardError',
     'StopIteration',
     'SyntaxError',
     'SystemError',

File pypy/interpreter/test/test_exceptcomp.py

     def test_parenttuple(self):
         try:
             raise ZeroDivisionError("0")
-        except (StandardError, SystemExit):
+        except (Exception, SystemExit):
             pass
         except:
             self.fail("Exception does not match parent in tuple.") 

File pypy/module/clr/interp_clr.py

     except TargetInvocationException, e:
         b_inner = native_exc(e).get_InnerException()
         message = str(b_inner.get_Message())
-        # TODO: use the appropriate exception, not StandardError
-        raise OperationError(space.w_StandardError, space.wrap(message))
+        # TODO: use the appropriate exception, not Exception
+        raise OperationError(space.w_Exception, space.wrap(message))
     if b_meth.get_ReturnType().get_Name() == 'Void':
         return space.w_None
     else:
     except TargetInvocationException, e:
         b_inner = native_exc(e).get_InnerException()
         message = str(b_inner.get_Message())
-        # TODO: use the appropriate exception, not StandardError
-        raise OperationError(space.w_StandardError, space.wrap(message))
+        # TODO: use the appropriate exception, not Exception
+        raise OperationError(space.w_Exception, space.wrap(message))
     return space.wrap(W_CliObject(space, b_obj))
 
 W_CliObject.typedef = TypeDef(

File pypy/module/clr/test/test_clr.py

         import clr
         ArrayList = clr.load_cli_class(self.mscorlib, 'System.Collections', 'ArrayList')
         obj = ArrayList()
-        raises(StandardError, obj.get_Item, 0)
+        raises(Exception, obj.get_Item, 0)
 
     def test_float_conversion(self):
         import clr

File pypy/module/oracle/app_oracle.py

 version = '5.0.0'
 paramstyle = 'named'
 
-class Warning(StandardError):
+class Warning(Exception):
     pass
 
-class Error(StandardError):
+class Error(Exception):
     pass
 
 class InterfaceError(Error):