From: Skip Montanaro Date: Mon, 18 Mar 2002 03:07:20 +0000 (+0000) Subject: dump the string exception fallback for anydbm.error. X-Git-Tag: v2.3c1~6460 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=c99475e7a0b97ae736ed9ecf213727c952666ef0;p=thirdparty%2FPython%2Fcpython.git dump the string exception fallback for anydbm.error. --- diff --git a/Lib/anydbm.py b/Lib/anydbm.py index f051200548f3..7c75ed173bb5 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]