summaryrefslogtreecommitdiff
path: root/numpy/lib/arraysetops.py
diff options
context:
space:
mode:
authorTravis Oliphant <oliphant@enthought.com>2006-09-20 19:01:00 +0000
committerTravis Oliphant <oliphant@enthought.com>2006-09-20 19:01:00 +0000
commit7a8ebd261c37307176bbad175ca60e99aa53fabf (patch)
treeba6b0b33f467e7363e9befaa01184caa88f41816 /numpy/lib/arraysetops.py
parent289b1c6c44704de514659452ddb66c3d2e1656ce (diff)
downloadnumpy-7a8ebd261c37307176bbad175ca60e99aa53fabf.tar.gz
Remove sorted from unique1d. Add testall to test if level > 10. Remove compiler warning.
Diffstat (limited to 'numpy/lib/arraysetops.py')
-rw-r--r--numpy/lib/arraysetops.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/numpy/lib/arraysetops.py b/numpy/lib/arraysetops.py
index e7c86e97c..6c5115582 100644
--- a/numpy/lib/arraysetops.py
+++ b/numpy/lib/arraysetops.py
@@ -64,7 +64,7 @@ def unique1d(ar1, retindx=False):
return perm.compress(flag), aux.compress(flag)
else:
- ar = numpy.array(sorted(ar))
+ ar.sort()
return ar.compress(ediff1d(ar, 1) != 0)
##