summaryrefslogtreecommitdiffstats
path: root/Lib
diff options
context:
space:
mode:
Diffstat (limited to 'Lib')
-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]