[Python-checkins] cpython (3.4): 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/7463c06f6e87
changeset: 95545:7463c06f6e87
branch: 3.4
parent: 95543:2582962ccf17
user: Antoine Pitrou <solipsis at pitrou.net>
date: Sun Apr 12 00:08:02 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

AltStyle によって変換されたページ (->オリジナル) /