diff options
author | Charles Harris <charlesr.harris@gmail.com> | 2011-04-05 15:08:23 -0600 |
---|---|---|
committer | Charles Harris <charlesr.harris@gmail.com> | 2011-04-05 17:38:00 -0600 |
commit | e1a9692cc36e4353798a332c834fce7aa6cf9b54 (patch) | |
tree | fc499f8768c8d2d99c64547cd1a0b7ae7e6018be /numpy/lib/npyio.py | |
parent | cfd766456368777bcb0d5edabd360b3aeb02d3f8 (diff) | |
download | numpy-e1a9692cc36e4353798a332c834fce7aa6cf9b54.tar.gz |
STY: Update exception styles, trickier ones.
Diffstat (limited to 'numpy/lib/npyio.py')
-rw-r--r-- | numpy/lib/npyio.py | 4 |
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: |