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:
parent
4894a97e22
commit
c99475e7a0
@ -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]
|
||||
|
Loading…
Reference in New Issue
Block a user