summaryrefslogtreecommitdiffstats
path: root/Doc/library/pathlib.rst
diff options
context:
space:
mode:
authorAntoine Pitrou <solipsis@pitrou.net>2015-04-11 22:08:02 (GMT)
committerAntoine Pitrou <solipsis@pitrou.net>2015-04-11 22:08:02 (GMT)
commit8ad751e0241b7bfbdfacff017c47794b3b0a3211 (patch)
tree2d5d4e5ee4d363287aa5d73fb4963d0b9890e0a0 /Doc/library/pathlib.rst
parente173c075026aea8a9d023997701a7461fb7e0272 (diff)
downloadcpython-8ad751e0241b7bfbdfacff017c47794b3b0a3211.zip
cpython-8ad751e0241b7bfbdfacff017c47794b3b0a3211.tar.gz
cpython-8ad751e0241b7bfbdfacff017c47794b3b0a3211.tar.bz2
Close #23904: fix pathlib documentation misleadingly mentioning that bytes objects are accepted in the PurePath constructor
Diffstat (limited to 'Doc/library/pathlib.rst')
-rw-r--r--Doc/library/pathlib.rst4
1 files changed, 2 insertions, 2 deletions
diff --git a/Doc/library/pathlib.rst b/Doc/library/pathlib.rst
index ec1dc4f..24e2a30 100644
--- a/Doc/library/pathlib.rst
+++ b/Doc/library/pathlib.rst
@@ -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')