summaryrefslogtreecommitdiff
path: root/numpy/core/oldnumeric.py
diff options
context:
space:
mode:
authorTravis Oliphant <oliphant@enthought.com>2006-03-29 02:20:00 +0000
committerTravis Oliphant <oliphant@enthought.com>2006-03-29 02:20:00 +0000
commit4aa3f16135c98a0a1d9c049dafe89cd272e01d87 (patch)
treecc18da0ca05a98498dc07ece8bc9ad5b3277d9dd /numpy/core/oldnumeric.py
parentc1dff9e8f2f9231597adb132634305ba407a8cc5 (diff)
downloadnumpy-4aa3f16135c98a0a1d9c049dafe89cd272e01d87.tar.gz
Fix ravel function because method went back to old behavior.
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 3bc1b13de..50e2b4c29 100644
--- a/numpy/core/oldnumeric.py
+++ b/numpy/core/oldnumeric.py
@@ -358,10 +358,7 @@ def ravel(m,order='C'):
a copy.
"""
a = asarray(m)
- try:
- return a.ravel(order)
- except ValueError:
- return a.copy(order).ravel(None)
+ return a.ravel(order)
def nonzero(a):
"""nonzero(a) returns the indices of the elements of a which are not zero,