Close #23904: fix pathlib documentation misleadingly mentioning that bytes objects are accepted in the PurePath constructor

This commit is contained in:
Antoine Pitrou 2015-04-12 00:08:02 +02:00
parent e173c07502
commit 8ad751e024
1 changed files with 2 additions and 2 deletions

View File

@ -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')