summaryrefslogtreecommitdiff
path: root/numpy/core/shape_base.py
diff options
context:
space:
mode:
Diffstat (limited to 'numpy/core/shape_base.py')
-rw-r--r--numpy/core/shape_base.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/numpy/core/shape_base.py b/numpy/core/shape_base.py
index c86684c6f..4c84cf397 100644
--- a/numpy/core/shape_base.py
+++ b/numpy/core/shape_base.py
@@ -1,7 +1,7 @@
__all__ = ['atleast_1d','atleast_2d','atleast_3d','vstack','hstack']
import numeric as _nx
-from numeric import array, asarray, newaxis
+from numeric import array, asanyarray, newaxis
def atleast_1d(*arys):
"""
@@ -146,7 +146,7 @@ def atleast_3d(*arys):
"""
res = []
for ary in arys:
- ary = asarray(ary)
+ ary = asanyarray(ary)
if len(ary.shape) == 0:
result = ary.reshape(1,1,1)
elif len(ary.shape) == 1: