From c99475e7a0b97ae736ed9ecf213727c952666ef0 Mon Sep 17 00:00:00 2001 From: Skip Montanaro Date: Mon, 18 Mar 2002 03:07:20 +0000 Subject: dump the string exception fallback for anydbm.error. --- Lib/anydbm.py | 7 ++----- 1 file 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] -- cgit v0.12