diff options
author | Charles Harris <charlesr.harris@gmail.com> | 2011-04-05 17:10:31 -0600 |
---|---|---|
committer | Charles Harris <charlesr.harris@gmail.com> | 2011-04-05 17:38:00 -0600 |
commit | fd2630366581049af6c9acc4b41315363b47b55a (patch) | |
tree | 8e17cdee3bfb7c9f1c30d793d1ce0267f1016e22 /numpy/lib/npyio.py | |
parent | b2793ea74ea05bc64288287dd2efbe0dcae99534 (diff) | |
download | numpy-fd2630366581049af6c9acc4b41315363b47b55a.tar.gz |
STY: Fix up some remaining old-style exceptions.
I think that is the end of it.
Diffstat (limited to 'numpy/lib/npyio.py')
-rw-r--r-- | numpy/lib/npyio.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/numpy/lib/npyio.py b/numpy/lib/npyio.py index c657f7f41..f8c24b1a0 100644 --- a/numpy/lib/npyio.py +++ b/numpy/lib/npyio.py @@ -113,7 +113,7 @@ class BagObj(object): try: return object.__getattribute__(self, '_obj')[key] except KeyError: - raise AttributeError, key + raise AttributeError(key) def zipfile_factory(*args, **kwargs): import zipfile @@ -353,8 +353,8 @@ def load(file, mmap_mode=None): try: return _cload(fid) except: - raise IOError, \ - "Failed to interpret file %s as a pickle" % repr(file) + raise IOError( + "Failed to interpret file %s as a pickle" % repr(file)) finally: if own_fid: fid.close() |