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 unrepresntative at the OS level.
a9dc0c8 to
dba3f82
Compare
|
Thank you for your review @vadmium! |
|
@serhiy-storchaka: Please replace |
Such functions as
os.path.exists(),os.path.lexists(),os.path.isdir(),os.path.isfile(),os.path.islink(), andos.path.ismount()now returnFalseinstead of raisingValueErroror its subclassesUnicodeEncodeErrorandUnicodeDecodeErrorfor paths that contain characters or bytes unrepresntative at the OS level.https://bugs.python.org/issue33721