summaryrefslogtreecommitdiffstats
path: root/Doc/library/os.rst
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 /Doc/library/os.rst
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 'Doc/library/os.rst')
-rw-r--r--Doc/library/os.rst4
1 files changed, 3 insertions, 1 deletions
diff --git a/Doc/library/os.rst b/Doc/library/os.rst
index c64f932..df136da 100644
--- a/Doc/library/os.rst
+++ b/Doc/library/os.rst
@@ -2014,8 +2014,10 @@ features:
The *dir_fd* argument.
.. versionchanged:: 3.6
- Accepts a :term:`path-like object`.
+ Accepts a :term:`path-like object` on Unix.
+ .. versionchanged:: 3.8
+ Accepts a :term:`path-like object` and a bytes object on Windows.
.. function:: remove(path, *, dir_fd=None)