summaryrefslogtreecommitdiff
path: root/numpy
diff options
context:
space:
mode:
Diffstat (limited to 'numpy')
-rw-r--r--numpy/core/memmap.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/numpy/core/memmap.py b/numpy/core/memmap.py
index 190de2a77..fd0a4bcd1 100644
--- a/numpy/core/memmap.py
+++ b/numpy/core/memmap.py
@@ -231,7 +231,7 @@ class memmap(ndarray):
if shape is None:
bytes = flen - offset
- if (bytes % _dbytes):
+ if bytes % _dbytes:
fid.close()
raise ValueError("Size of available data is not a "
"multiple of the data-type size.")