summaryrefslogtreecommitdiff
path: root/numpy/core/oldnumeric.py
diff options
context:
space:
mode:
Diffstat (limited to 'numpy/core/oldnumeric.py')
-rw-r--r--numpy/core/oldnumeric.py5
1 files changed, 1 insertions, 4 deletions
diff --git a/numpy/core/oldnumeric.py b/numpy/core/oldnumeric.py
index aed834c9f..e9d1835ac 100644
--- a/numpy/core/oldnumeric.py
+++ b/numpy/core/oldnumeric.py
@@ -186,10 +186,7 @@ def reshape(a, newshape, order='C'):
reshape = a.reshape
except AttributeError:
return _wrapit(a, 'reshape', newshape, order=order)
- try:
- return reshape(newshape, order=order)
- except ValueError:
- return a.copy(order).reshape(newshape, order=None)
+ return reshape(newshape, order=order)
def choose(a, choices):
try: