diff options
| author | Eric Wieser <wieser.eric@gmail.com> | 2016-05-08 11:29:02 -0400 |
|---|---|---|
| committer | Eric Wieser <wieser.eric@gmail.com> | 2016-05-08 11:29:02 -0400 |
| commit | 8894b81b166f6b0c200dde77a70fb360e95b0f7c (patch) | |
| tree | d4e88e3d498db68a85cbf6f8474cfa5f233d6caa | |
| parent | c515fcd0a6cf801f23cace68d8d5896267c104dc (diff) | |
| download | numpy-8894b81b166f6b0c200dde77a70fb360e95b0f7c.tar.gz | |
BUG: Fix TypeError when raising TypeError
Fixes "TypeError: pop expected at least 1 arguments, got 0"
| -rw-r--r-- | numpy/lib/stride_tricks.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/numpy/lib/stride_tricks.py b/numpy/lib/stride_tricks.py index a87c34fb5..f390cf49b 100644 --- a/numpy/lib/stride_tricks.py +++ b/numpy/lib/stride_tricks.py @@ -244,7 +244,7 @@ def broadcast_arrays(*args, **kwargs): subok = kwargs.pop('subok', False) if kwargs: raise TypeError('broadcast_arrays() got an unexpected keyword ' - 'argument {}'.format(kwargs.pop())) + 'argument {!r}'.format(kwargs.keys()[0])) args = [np.array(_m, copy=False, subok=subok) for _m in args] shape = _broadcast_shape(*args) |
