summaryrefslogtreecommitdiff
path: root/numpy/core/fromnumeric.py
diff options
context:
space:
mode:
authorEric Wieser <wieser.eric@gmail.com>2020-08-28 09:32:09 +0100
committerEric Wieser <wieser.eric@gmail.com>2020-08-28 13:55:13 +0100
commit80701dda0fd7b16ecccc2243e9a0c5f00194fef6 (patch)
tree9c1dc1f2b176fe4b41f2ca1d0be72a50e06f9d89 /numpy/core/fromnumeric.py
parente22696c9f675d5d977ebaa21f4bc7e8fbd67e8e6 (diff)
downloadnumpy-80701dda0fd7b16ecccc2243e9a0c5f00194fef6.tar.gz
MAINT: Produce a better error message for unicode datetime formats
Rather than raising UnicodeEncodeError, this just raises ValueError. Passing weird byte strings results in UnicodeDecodeError instead. In future, we may just want to deprecate passing `bytes` objects.
Diffstat (limited to 'numpy/core/fromnumeric.py')
0 files changed, 0 insertions, 0 deletions