]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
bpo-34384: Fix os.readlink() on Windows (GH-8740)
authorBerker Peksag <berker.peksag@gmail.com>
Wed, 15 Aug 2018 10:03:41 +0000 (13:03 +0300)
committerGitHub <noreply@github.com>
Wed, 15 Aug 2018 10:03:41 +0000 (13:03 +0300)
commite0b5b2096ead4cc094a129ce7602ac5c0e998086
treeb001fbdec6156b8316a4b5e518ee5acf57b55c75
parent7c4ab2afb17b99eb3f61f9c73cbd548b5e0ad2c0
bpo-34384: Fix os.readlink() on Windows (GH-8740)

os.readlink() now accepts path-like and bytes objects on Windows.
Previously, support for path-like and bytes objects was only
implemented on Unix.

This commit also merges Unix and Windows implementations of
os.readlink() in one function and adds basic unit tests to increase
test coverage of the function.
Doc/library/os.rst
Lib/test/test_os.py
Misc/NEWS.d/next/Library/2018-08-12-08-43-21.bpo-34384.yjofCv.rst [new file with mode: 0644]
Modules/posixmodule.c