summaryrefslogtreecommitdiff
path: root/Lib/posixpath.py
diff options
context:
space:
mode:
authorFurkan Onder <furkanonder@protonmail.com>2021-07-12 15:48:01 +0300
committerGitHub <noreply@github.com>2021-07-12 09:48:01 -0300
commit66c5853406bbcccecf35372795078c0641a5f385 (patch)
treef71438a64552e58c92eb00e3d79f99d1f8f929ce /Lib/posixpath.py
parent171d529a95be53128e2ec9afc756d489247c875a (diff)
downloadcpython-git-66c5853406bbcccecf35372795078c0641a5f385.tar.gz
bpo-26329: update os.path.normpath documentation (GH-20138)
* bpo-26329: update os.path.normpath documentation * Update os.path.rst * Update posixpath.py * update Pathname Resolution note
Diffstat (limited to 'Lib/posixpath.py')
-rw-r--r--Lib/posixpath.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/Lib/posixpath.py b/Lib/posixpath.py
index 259baa64b1..195374613a 100644
--- a/Lib/posixpath.py
+++ b/Lib/posixpath.py
@@ -352,6 +352,7 @@ def normpath(path):
initial_slashes = path.startswith(sep)
# POSIX allows one or two initial slashes, but treats three or more
# as single slash.
+ # (see http://pubs.opengroup.org/onlinepubs/9699919799/basedefs/V1_chap04.html#tag_04_13)
if (initial_slashes and
path.startswith(sep*2) and not path.startswith(sep*3)):
initial_slashes = 2