diff options
author | Barney Gale <barney.gale@gmail.com> | 2023-05-02 19:08:19 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-05-02 19:08:19 +0100 |
commit | 8611e7bf5ceace998fefcbf26ab1c5d5bc8a0e2a (patch) | |
tree | c06a1f5421944184eb75ccd604ee855aae093c26 /Python/sysmodule.c | |
parent | d81ca7ec029ba05084751c8df64292bb48f4f30f (diff) | |
download | cpython-8611e7bf5ceace998fefcbf26ab1c5d5bc8a0e2a.tar.gz cpython-8611e7bf5ceace998fefcbf26ab1c5d5bc8a0e2a.zip |
GH-103525: Improve exception message from `pathlib.PurePath()` (GH-103526)
Check that arguments are strings before calling `os.path.join()`.
Also improve performance of `PurePath(PurePath(...))` while we're in the
area: we now use the *unnormalized* string path of such arguments.
Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
Diffstat (limited to 'Python/sysmodule.c')
0 files changed, 0 insertions, 0 deletions