Commit 7046b872 authored by Antoine Pitrou's avatar Antoine Pitrou

Close #23904: fix pathlib documentation misleadingly mentioning that bytes...

Close #23904: fix pathlib documentation misleadingly mentioning that bytes objects are accepted in the PurePath constructor
parent 8b1951a0
......@@ -106,8 +106,8 @@ we also call *flavours*:
>>> PurePath('setup.py') # Running on a Unix machine
PurePosixPath('setup.py')
Each element of *pathsegments* can be either a string or bytes object
representing a path segment; it can also be another path object::
Each element of *pathsegments* can be either a string representing a
path segment, or another path object::
>>> PurePath('foo', 'some/path', 'bar')
PurePosixPath('foo/some/path/bar')
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment