diff options
author | Skip Montanaro <skip@pobox.com> | 2002-03-18 03:07:20 (GMT) |
---|---|---|
committer | Skip Montanaro <skip@pobox.com> | 2002-03-18 03:07:20 (GMT) |
commit | c99475e7a0b97ae736ed9ecf213727c952666ef0 (patch) | |
tree | 8f63385048739325a3c2690bfe4a1ce29ebb13d4 /Lib/anydbm.py | |
parent | 4894a97e2243699d3a1373e2b7d34cead3b20bc0 (diff) | |
download | cpython-c99475e7a0b97ae736ed9ecf213727c952666ef0.zip cpython-c99475e7a0b97ae736ed9ecf213727c952666ef0.tar.gz cpython-c99475e7a0b97ae736ed9ecf213727c952666ef0.tar.bz2 |
dump the string exception fallback for anydbm.error.
Diffstat (limited to 'Lib/anydbm.py')
-rw-r--r-- | Lib/anydbm.py | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/Lib/anydbm.py b/Lib/anydbm.py index f051200..7c75ed1 100644 --- a/Lib/anydbm.py +++ b/Lib/anydbm.py @@ -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] |