summaryrefslogtreecommitdiffstats
path: root/Doc
diff options
context:
space:
mode:
authorAntoine Pitrou <solipsis@pitrou.net>2015-04-11 22:08:35 (GMT)
committerAntoine Pitrou <solipsis@pitrou.net>2015-04-11 22:08:35 (GMT)
commit8d0c478601a893840f3bae15e2af1ceb964b504d (patch)
treea0b0599d97cd433cb26745e2a25452102fde4aaf /Doc
parent0ac8aa7ff3e64a93602881124f328b8f9373a855 (diff)
parent8ad751e0241b7bfbdfacff017c47794b3b0a3211 (diff)
downloadcpython-8d0c478601a893840f3bae15e2af1ceb964b504d.zip
cpython-8d0c478601a893840f3bae15e2af1ceb964b504d.tar.gz
cpython-8d0c478601a893840f3bae15e2af1ceb964b504d.tar.bz2
Close #23904: fix pathlib documentation misleadingly mentioning that bytes objects are accepted in the PurePath constructor
Diffstat (limited to 'Doc')
-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 0226ce4..2f06544 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')