[Python-checkins] cpython (merge 3.4 -> default): Close #23904: fix pathlib documentation misleadingly mentioning that bytes
antoine.pitrou
python-checkins at python.org
Sun Apr 12 00:08:43 CEST 2015
https://hg.python.org/cpython/rev/386732087dfb
changeset: 95546:386732087dfb
parent: 95544:23d37a147051
parent: 95545:7463c06f6e87
user: Antoine Pitrou <solipsis at pitrou.net>
date: Sun Apr 12 00:08:35 2015 +0200
summary:
Close #23904: fix pathlib documentation misleadingly mentioning that bytes objects are accepted in the PurePath constructor
files:
Doc/library/pathlib.rst | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/Doc/library/pathlib.rst b/Doc/library/pathlib.rst
--- a/Doc/library/pathlib.rst
+++ b/Doc/library/pathlib.rst
@@ -106,8 +106,8 @@
>>> 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')
--
Repository URL: https://hg.python.org/cpython
More information about the Python-checkins
mailing list