summaryrefslogtreecommitdiffstats
path: root/Lib/anydbm.py
diff options
context:
space:
mode:
authorCollin Winter <collinw@gmail.com>2007-08-30 01:19:48 (GMT)
committerCollin Winter <collinw@gmail.com>2007-08-30 01:19:48 (GMT)
commitce36ad8a467d914eb5c91f33835b9eaea18ee93b (patch)
tree05bf654f3359e20b455dc300bd860bba5d291c8d /Lib/anydbm.py
parent8b3febef2f96c35e9aad9db2ef499db040fdefae (diff)
downloadcpython-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.py6
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)