SIGN IN SIGN UP

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.
S
Serhiy Storchaka committed
0185f34ddcf07b78feb6ac666fbfd4615d26b028
Parent: 7bdf282
Committed by GitHub <noreply@github.com> on 9/18/2018, 8:28:51 AM