dump the string exception fallback for anydbm.error.

This commit is contained in:
Skip Montanaro 2002-03-18 03:07:20 +00:00
parent 4894a97e22
commit c99475e7a0
1 changed files with 2 additions and 5 deletions

View File

@ -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]