Kaydet (Commit) c99475e7 authored tarafından Skip Montanaro's avatar Skip Montanaro

dump the string exception fallback for anydbm.error.

üst 4894a97e
...@@ -42,11 +42,8 @@ only if it doesn't exist; and 'n' always creates a new database. ...@@ -42,11 +42,8 @@ only if it doesn't exist; and 'n' always creates a new database.
""" """
try: class error(Exception):
class error(Exception): pass
pass
except (NameError, TypeError):
error = "anydbm.error"
_names = ['dbhash', 'gdbm', 'dbm', 'dumbdbm'] _names = ['dbhash', 'gdbm', 'dbm', 'dumbdbm']
_errors = [error] _errors = [error]
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment