summaryrefslogtreecommitdiff
path: root/numpy/core/numeric.py
diff options
context:
space:
mode:
Diffstat (limited to 'numpy/core/numeric.py')
-rw-r--r--numpy/core/numeric.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/numpy/core/numeric.py b/numpy/core/numeric.py
index 52fe1d394..166a2d5cc 100644
--- a/numpy/core/numeric.py
+++ b/numpy/core/numeric.py
@@ -333,8 +333,8 @@ def indices(dimensions, dtype=int):
tmp = ones(dimensions, dtype)
lst = []
for i in range(len(dimensions)):
- lst.append( add.accumulate(tmp, i, )-1 )
- return array(lst, dtype)
+ lst.append( add.accumulate(tmp, i, dtype)-1 )
+ return array(lst)
def fromfunction(function, dimensions, **kwargs):
"""fromfunction(function, dimensions) returns an array constructed by