diff options
Diffstat (limited to 'numpy/core/oldnumeric.py')
-rw-r--r-- | numpy/core/oldnumeric.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/numpy/core/oldnumeric.py b/numpy/core/oldnumeric.py index 50e2b4c29..aed834c9f 100644 --- a/numpy/core/oldnumeric.py +++ b/numpy/core/oldnumeric.py @@ -257,7 +257,7 @@ def transpose(a, axes=None): def sort(a, axis=-1): """sort(a,axis=-1) returns array with elements sorted along given axis. """ - a = asanyarray(a, copy=True) + a = asanyarray(a).copy() a.sort(axis) return a |