summaryrefslogtreecommitdiffstats
path: root/Misc
diff options
context:
space:
mode:
authorBerker Peksag <berker.peksag@gmail.com>2018-08-15 10:03:41 (GMT)
committerGitHub <noreply@github.com>2018-08-15 10:03:41 (GMT)
commite0b5b2096ead4cc094a129ce7602ac5c0e998086 (patch)
treeb001fbdec6156b8316a4b5e518ee5acf57b55c75 /Misc
parent7c4ab2afb17b99eb3f61f9c73cbd548b5e0ad2c0 (diff)
downloadcpython-e0b5b2096ead4cc094a129ce7602ac5c0e998086.zip
cpython-e0b5b2096ead4cc094a129ce7602ac5c0e998086.tar.gz
cpython-e0b5b2096ead4cc094a129ce7602ac5c0e998086.tar.bz2
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.
Diffstat (limited to 'Misc')
-rw-r--r--Misc/NEWS.d/next/Library/2018-08-12-08-43-21.bpo-34384.yjofCv.rst2
1 files changed, 2 insertions, 0 deletions
diff --git a/Misc/NEWS.d/next/Library/2018-08-12-08-43-21.bpo-34384.yjofCv.rst b/Misc/NEWS.d/next/Library/2018-08-12-08-43-21.bpo-34384.yjofCv.rst
new file mode 100644
index 0000000..117236b
--- /dev/null
+++ b/Misc/NEWS.d/next/Library/2018-08-12-08-43-21.bpo-34384.yjofCv.rst
@@ -0,0 +1,2 @@
+:func:`os.readlink` now accepts :term:`path-like <path-like object>` and
+:class:`bytes` objects on Windows.