mirror of
https://github.com/python/cpython.git
synced 2025-08-31 14:07:50 +00:00
dump the string exception fallback for anydbm.error.
This commit is contained in:
parent
4894a97e22
commit
c99475e7a0
1 changed files with 2 additions and 5 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue