summaryrefslogtreecommitdiff
path: root/numpy/lib/arraypad.py
diff options
context:
space:
mode:
authorNathaniel J. Smith <njs@pobox.com>2016-02-28 03:34:50 +0000
committerNathaniel J. Smith <njs@pobox.com>2016-02-28 03:34:50 +0000
commite90e254a916610d2576fa5c2e1627b1d8d530d20 (patch)
tree45ca8b75ddc2ec963a339be0c22a10b32be00cb2 /numpy/lib/arraypad.py
parent140552df7c5554742de2caf01b26676010134bde (diff)
parent3db32cb133e858e48596de29f5693633a7b4dcc4 (diff)
downloadnumpy-e90e254a916610d2576fa5c2e1627b1d8d530d20.tar.gz
Merge pull request #7358 from chiffa/master
BUG: pull request related to the issue #7353
Diffstat (limited to 'numpy/lib/arraypad.py')
-rw-r--r--numpy/lib/arraypad.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/numpy/lib/arraypad.py b/numpy/lib/arraypad.py
index c30ef6bf5..3cfb1052a 100644
--- a/numpy/lib/arraypad.py
+++ b/numpy/lib/arraypad.py
@@ -1052,7 +1052,7 @@ def _normalize_shape(ndarray, shape, cast_to_int=True):
arr = arr.repeat(2, axis=1)
elif arr.shape[0] == ndims:
# Input correctly formatted, pass it on as `arr`
- arr = shape
+ pass
else:
fmt = "Unable to create correctly shaped tuple from %s"
raise ValueError(fmt % (shape,))