From 25131faffeb61e1678f38bbf188628f2dcca4ebc Mon Sep 17 00:00:00 2001 From: Barry Warsaw Date: Tue, 16 Sep 1997 21:50:59 +0000 Subject: NumberError => ArithmeticError --- Lib/exceptions.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/Lib/exceptions.py b/Lib/exceptions.py index 0744611..686ba38 100644 --- a/Lib/exceptions.py +++ b/Lib/exceptions.py @@ -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): -- cgit v0.12