summaryrefslogtreecommitdiff
path: root/numpy/lib/stride_tricks.py
diff options
context:
space:
mode:
authorHolger Kohr <kohr@kth.se>2015-12-30 12:55:32 +0100
committerHolger Kohr <kohr@kth.se>2016-01-04 11:47:15 +0100
commit450cb8c2d77a8becdeae30afd90d0ec743e6f3ec (patch)
treeb994ae39ce5a518c18c9670ae277a359f0bcca55 /numpy/lib/stride_tricks.py
parente072d79f03610c33e336a9b700882d8905f9c958 (diff)
downloadnumpy-450cb8c2d77a8becdeae30afd90d0ec743e6f3ec.tar.gz
ENH: allow single input argument in numpy.broadcast
Diffstat (limited to 'numpy/lib/stride_tricks.py')
-rw-r--r--numpy/lib/stride_tricks.py3
1 files changed, 0 insertions, 3 deletions
diff --git a/numpy/lib/stride_tricks.py b/numpy/lib/stride_tricks.py
index f4b43a5a9..4c23ab355 100644
--- a/numpy/lib/stride_tricks.py
+++ b/numpy/lib/stride_tricks.py
@@ -121,9 +121,6 @@ def _broadcast_shape(*args):
"""
if not args:
raise ValueError('must provide at least one argument')
- if len(args) == 1:
- # a single argument does not work with np.broadcast
- return np.asarray(args[0]).shape
# use the old-iterator because np.nditer does not handle size 0 arrays
# consistently
b = np.broadcast(*args[:32])