diff options
author | Eric Wieser <wieser.eric@gmail.com> | 2020-08-28 09:32:09 +0100 |
---|---|---|
committer | Eric Wieser <wieser.eric@gmail.com> | 2020-08-28 13:55:13 +0100 |
commit | 80701dda0fd7b16ecccc2243e9a0c5f00194fef6 (patch) | |
tree | 9c1dc1f2b176fe4b41f2ca1d0be72a50e06f9d89 /numpy/core/fromnumeric.py | |
parent | e22696c9f675d5d977ebaa21f4bc7e8fbd67e8e6 (diff) | |
download | numpy-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