From 052de78f3e507a4c405e8665ec8e28bfd8c0756d Mon Sep 17 00:00:00 2001 From: Travis Oliphant Date: Wed, 29 Mar 2006 22:17:32 +0000 Subject: Rever to old .reshape copy-if-necessary behavior. Too disruptive to change. A sub-class should change it. --- numpy/core/oldnumeric.py | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'numpy/core/oldnumeric.py') 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: -- cgit v1.2.1