summaryrefslogtreecommitdiff
path: root/numpy/core/memmap.py
diff options
context:
space:
mode:
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: