summaryrefslogtreecommitdiff
path: root/numpy/core/memmap.py
diff options
context:
space:
mode:
authorCharles Harris <charlesr.harris@gmail.com>2011-04-05 16:10:44 -0600
committerCharles Harris <charlesr.harris@gmail.com>2011-04-05 17:38:00 -0600
commitb2793ea74ea05bc64288287dd2efbe0dcae99534 (patch)
tree565008825238b770fb5ab320e857dbe7a8f4c9b2 /numpy/core/memmap.py
parente1a9692cc36e4353798a332c834fce7aa6cf9b54 (diff)
downloadnumpy-b2793ea74ea05bc64288287dd2efbe0dcae99534.tar.gz
STY: Fix up some two line old-style exceptions.
Diffstat (limited to 'numpy/core/memmap.py')
-rw-r--r--numpy/core/memmap.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/numpy/core/memmap.py b/numpy/core/memmap.py
index c445ee641..5a7aaba1c 100644
--- a/numpy/core/memmap.py
+++ b/numpy/core/memmap.py
@@ -184,7 +184,7 @@ class memmap(ndarray):
mode = mode_equivalents[mode]
except KeyError:
if mode not in valid_filemodes:
- raise ValueError("mode must be one of %s" % \
+ raise ValueError("mode must be one of %s" %
(valid_filemodes + mode_equivalents.keys()))
if hasattr(filename,'read'):
@@ -204,8 +204,8 @@ class memmap(ndarray):
bytes = flen - offset
if (bytes % _dbytes):
fid.close()
- raise ValueError, "Size of available data is not a "\
- "multiple of data-type size."
+ raise ValueError("Size of available data is not a "
+ "multiple of the data-type size.")
size = bytes // _dbytes
shape = (size,)
else: