From 8ad751e0241b7bfbdfacff017c47794b3b0a3211 Mon Sep 17 00:00:00 2001 From: Antoine Pitrou Date: Sun, 12 Apr 2015 00:08:02 +0200 Subject: Close #23904: fix pathlib documentation misleadingly mentioning that bytes objects are accepted in the PurePath constructor --- Doc/library/pathlib.rst | 4 ++-- 1 file 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') -- cgit v0.12