summaryrefslogtreecommitdiff
path: root/numpy/lib/npyio.py
diff options
context:
space:
mode:
authorCharles Harris <charlesr.harris@gmail.com>2011-04-05 15:08:23 -0600
committerCharles Harris <charlesr.harris@gmail.com>2011-04-05 17:38:00 -0600
commite1a9692cc36e4353798a332c834fce7aa6cf9b54 (patch)
treefc499f8768c8d2d99c64547cd1a0b7ae7e6018be /numpy/lib/npyio.py
parentcfd766456368777bcb0d5edabd360b3aeb02d3f8 (diff)
downloadnumpy-e1a9692cc36e4353798a332c834fce7aa6cf9b54.tar.gz
STY: Update exception styles, trickier ones.
Diffstat (limited to 'numpy/lib/npyio.py')
-rw-r--r--numpy/lib/npyio.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/numpy/lib/npyio.py b/numpy/lib/npyio.py
index da8074f97..c657f7f41 100644
--- a/numpy/lib/npyio.py
+++ b/numpy/lib/npyio.py
@@ -233,7 +233,7 @@ class NpzFile(object):
else:
return bytes
else:
- raise KeyError, "%s is not a file in the archive" % key
+ raise KeyError("%s is not a file in the archive" % key)
def __iter__(self):
@@ -530,7 +530,7 @@ def _savez(file, args, kwds, compress):
for i, val in enumerate(args):
key = 'arr_%d' % i
if key in namedict.keys():
- raise ValueError, "Cannot use un-named variables and keyword %s" % key
+ raise ValueError("Cannot use un-named variables and keyword %s" % key)
namedict[key] = val
if compress: