summaryrefslogtreecommitdiff
path: root/numpy/lib/utils.py
diff options
context:
space:
mode:
authorEric Wieser <wieser.eric@gmail.com>2019-03-02 14:28:18 -0800
committerEric Wieser <wieser.eric@gmail.com>2019-03-02 14:28:18 -0800
commitae423c3de5e0768df7ff7a4e2a09f17a9531698d (patch)
tree91b31c584475e4460b577cae10ea46ade9ffcada /numpy/lib/utils.py
parente21d2cbdf15a86e16ef4877a42ed98d97ea296d3 (diff)
downloadnumpy-ae423c3de5e0768df7ff7a4e2a09f17a9531698d.tar.gz
BUG: Fix errors in string formatting while producing an error
`"Invalid version %r" % (1, 2)` would fail with `TypeError: not all arguments converted during string formatting` The `Header is not a dictionary` error had a similar problem. Fixed by changing this entire function to use `.format` in place of `%`, which does not have this gotcha. Found using LGTM.com
Diffstat (limited to 'numpy/lib/utils.py')
0 files changed, 0 insertions, 0 deletions