• Serhiy Storchaka's avatar
    bpo-33721: Make some os.path functions and pathlib.Path methods be tolerant to… · 0185f34d
    Serhiy Storchaka yazdı
     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.
    0185f34d
test_posixpath.py 28.4 KB