0
0
mirror of https://github.com/python/cpython.git synced 2024-12-01 11:15:56 +01:00

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

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]