summaryrefslogtreecommitdiffstats
path: root/Lib/anydbm.py
diff options
context:
space:
mode:
authorSkip Montanaro <skip@pobox.com>2002-03-18 03:07:20 (GMT)
committerSkip Montanaro <skip@pobox.com>2002-03-18 03:07:20 (GMT)
commitc99475e7a0b97ae736ed9ecf213727c952666ef0 (patch)
tree8f63385048739325a3c2690bfe4a1ce29ebb13d4 /Lib/anydbm.py
parent4894a97e2243699d3a1373e2b7d34cead3b20bc0 (diff)
downloadcpython-c99475e7a0b97ae736ed9ecf213727c952666ef0.zip
cpython-c99475e7a0b97ae736ed9ecf213727c952666ef0.tar.gz
cpython-c99475e7a0b97ae736ed9ecf213727c952666ef0.tar.bz2
dump the string exception fallback for anydbm.error.
Diffstat (limited to 'Lib/anydbm.py')
-rw-r--r--Lib/anydbm.py7
1 files changed, 2 insertions, 5 deletions
diff --git a/Lib/anydbm.py b/Lib/anydbm.py
index f051200..7c75ed1 100644
--- a/Lib/anydbm.py
+++ b/Lib/anydbm.py
@@ -42,11 +42,8 @@ only if it doesn't exist; and 'n' always creates a new database.
"""
-try:
- class error(Exception):
- pass
-except (NameError, TypeError):
- error = "anydbm.error"
+class error(Exception):
+ pass
_names = ['dbhash', 'gdbm', 'dbm', 'dumbdbm']
_errors = [error]