summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPat Gunn <pgunn01@gmail.com>2018-06-11 09:30:15 -0400
committerPat Gunn <pgunn01@gmail.com>2018-06-11 09:30:15 -0400
commit29b8cfb003393c7182b669d7d507105cb71aa637 (patch)
tree86e135a735b54124fb496344e6e409376bea09cc
parent8525d3e30f3b57332dfd374bc64b068366126b52 (diff)
downloadnumpy-29b8cfb003393c7182b669d7d507105cb71aa637.tar.gz
Restore a line that I accidentally deleted rather than reverted in earlier diff
-rw-r--r--numpy/core/memmap.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/numpy/core/memmap.py b/numpy/core/memmap.py
index b2ff0e793..536fa6094 100644
--- a/numpy/core/memmap.py
+++ b/numpy/core/memmap.py
@@ -236,6 +236,7 @@ class memmap(ndarray):
raise ValueError("Size of available data is not a "
"multiple of the data-type size.")
size = bytes // _dbytes
+ shape = (size,)
else:
if not isinstance(shape, tuple):
shape = (shape,)