commit | 0185f34ddcf07b78feb6ac666fbfd4615d26b028 | [log] [tgz] |
---|---|---|
author | Serhiy Storchaka <storchaka@gmail.com> | Tue Sep 18 11:28:51 2018 +0300 |
committer | GitHub <noreply@github.com> | Tue Sep 18 11:28:51 2018 +0300 |
tree | a27f02f0095d5a7fb1fcbd539114b3a74fb4fcc7 | |
parent | 7bdf28265aa371b39f82dfc6562635801aff15a5 [diff] |
bpo-33721: Make some os.path functions and pathlib.Path methods be tolerant to invalid paths. (#7695) Such functions as os.path.exists(), os.path.lexists(), os.path.isdir(), os.path.isfile(), os.path.islink(), and os.path.ismount() now return False instead of raising ValueError or its subclasses UnicodeEncodeError and UnicodeDecodeError for paths that contain characters or bytes unrepresentative at the OS level.