summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKreiswolke <oliver_eberle@web.de>2015-03-11 13:07:22 +0100
committerKreiswolke <oliver_eberle@web.de>2015-03-11 13:07:22 +0100
commit6eef837b4ae321e8bd2dffab4df68a4869f00860 (patch)
tree2efb9071b487a5cb05501279583043f13be7a757
parenta5ea773e66110cf335c9ed37e8ccdc14f8e56764 (diff)
downloadnumpy-6eef837b4ae321e8bd2dffab4df68a4869f00860.tar.gz
Update shape_base.py
So removed the paranthesis and included the return statement.
-rw-r--r--numpy/lib/shape_base.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/numpy/lib/shape_base.py b/numpy/lib/shape_base.py
index 4acdf4a77..011434dda 100644
--- a/numpy/lib/shape_base.py
+++ b/numpy/lib/shape_base.py
@@ -850,10 +850,10 @@ def tile(A, reps):
except TypeError:
tup = (reps,)
d = len(tup)
- if all((x == 1 for x in tup)) and isinstance(A, _nx.ndarray):
+ if all(x == 1 for x in tup) and isinstance(A, _nx.ndarray):
# Fixes the problem that the function does not make a copy if A is a
# numpy array and the repetitions are 1 in all dimensions
- c = _nx.array(A, copy=True, subok=True, ndmin=d)
+ return _nx.array(A, copy=True, subok=True, ndmin=d)
else:
c = _nx.array(A, copy=False, subok=True, ndmin=d)
shape = list(c.shape)