diff options
author | Collin Winter <collinw@gmail.com> | 2007-08-30 01:19:48 (GMT) |
---|---|---|
committer | Collin Winter <collinw@gmail.com> | 2007-08-30 01:19:48 (GMT) |
commit | ce36ad8a467d914eb5c91f33835b9eaea18ee93b (patch) | |
tree | 05bf654f3359e20b455dc300bd860bba5d291c8d /Lib/anydbm.py | |
parent | 8b3febef2f96c35e9aad9db2ef499db040fdefae (diff) | |
download | cpython-ce36ad8a467d914eb5c91f33835b9eaea18ee93b.zip cpython-ce36ad8a467d914eb5c91f33835b9eaea18ee93b.tar.gz cpython-ce36ad8a467d914eb5c91f33835b9eaea18ee93b.tar.bz2 |
Raise statement normalization in Lib/.
Diffstat (limited to 'Lib/anydbm.py')
-rw-r--r-- | Lib/anydbm.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Lib/anydbm.py b/Lib/anydbm.py index 8938184..41335a3 100644 --- a/Lib/anydbm.py +++ b/Lib/anydbm.py @@ -59,7 +59,7 @@ for _name in _names: _errors.append(_mod.error) if not _defaultmod: - raise ImportError, "no dbm clone found; tried %s" % _names + raise ImportError("no dbm clone found; tried %s" % _names) error = tuple(_errors) @@ -74,10 +74,10 @@ def open(file, flag = 'r', mode = 0o666): # flag was used so use default type mod = _defaultmod else: - raise error, "need 'c' or 'n' flag to open new db" + raise error("need 'c' or 'n' flag to open new db") elif result == "": # db type cannot be determined - raise error, "db type could not be determined" + raise error("db type could not be determined") else: mod = __import__(result) return mod.open(file, flag, mode) |