]> granicus.if.org Git - python/commitdiff
NumberError => ArithmeticError
authorBarry Warsaw <barry@python.org>
Tue, 16 Sep 1997 21:50:59 +0000 (21:50 +0000)
committerBarry Warsaw <barry@python.org>
Tue, 16 Sep 1997 21:50:59 +0000 (21:50 +0000)
Lib/exceptions.py

index 074461179501dd0c05382420a70ef0048ab47d99..686ba381587be8ad8ffda3ab67407b3b4549bc6c 100644 (file)
@@ -35,7 +35,7 @@ Exception(*)
       |    +-- IndexError
       |    +-- KeyError
       |
-      +-- NumberError(*)
+      +-- ArithmeticError(*)
       |    |
       |    +-- OverflowError
       |    +-- ZeroDivisionError
@@ -112,16 +112,16 @@ class KeyboardInterrupt(StandardError):
 class AssertionError(StandardError):
     pass
 
-class NumberError(StandardError):
+class ArithmeticError(StandardError):
     pass
 
-class OverflowError(NumberError):
+class OverflowError(ArithmeticError):
     pass
 
-class FloatingPointError(NumberError):
+class FloatingPointError(ArithmeticError):
     pass
 
-class ZeroDivisionError(NumberError):
+class ZeroDivisionError(ArithmeticError):
     pass
 
 class LookupError(StandardError):