summaryrefslogtreecommitdiffstats
path: root/Lib/exceptions.py
diff options
context:
space:
mode:
authorBarry Warsaw <barry@python.org>1997-09-16 21:50:59 (GMT)
committerBarry Warsaw <barry@python.org>1997-09-16 21:50:59 (GMT)
commit25131faffeb61e1678f38bbf188628f2dcca4ebc (patch)
tree983014408b12bc0c5cb89df5c608bf2f64e53e3f /Lib/exceptions.py
parent2d2c34445b4b170a05a2280ab80656e3f5e1d988 (diff)
downloadcpython-25131faffeb61e1678f38bbf188628f2dcca4ebc.zip
cpython-25131faffeb61e1678f38bbf188628f2dcca4ebc.tar.gz
cpython-25131faffeb61e1678f38bbf188628f2dcca4ebc.tar.bz2
NumberError => ArithmeticError
Diffstat (limited to 'Lib/exceptions.py')
-rw-r--r--Lib/exceptions.py10
1 files 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):