diff options
author | Yury Selivanov <yselivanov@sprymix.com> | 2015-08-19 13:53:28 (GMT) |
---|---|---|
committer | Yury Selivanov <yselivanov@sprymix.com> | 2015-08-19 13:53:28 (GMT) |
commit | de1156186260fe74a1c803f3adbc680e271b7f0a (patch) | |
tree | c7b414c6d0bebe7cbd11942d91054821ad1477d9 /Doc/library/os.path.rst | |
parent | e7e69391e362fbb3de2a2da7beaebb4b7d6cf612 (diff) | |
download | cpython-de1156186260fe74a1c803f3adbc680e271b7f0a.zip cpython-de1156186260fe74a1c803f3adbc680e271b7f0a.tar.gz cpython-de1156186260fe74a1c803f3adbc680e271b7f0a.tar.bz2 |
Further improve os.path.commonprefix() docs.
Patch by Serhiy Storchaka.
Diffstat (limited to 'Doc/library/os.path.rst')
-rw-r--r-- | Doc/library/os.path.rst | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/Doc/library/os.path.rst b/Doc/library/os.path.rst index 041277c..a3fe73c 100644 --- a/Doc/library/os.path.rst +++ b/Doc/library/os.path.rst @@ -92,11 +92,11 @@ the :mod:`glob` module.) :: - >>> os.path.commonprefix(['/dir1/dir2', '/dir3/dir4']) - '/dir' + >>> os.path.commonprefix(['/usr/lib', '/usr/local/lib']) + '/usr/l' - >>> os.path.commonpath(['/dir1/dir2', '/dir3/dir4']) - '/' + >>> os.path.commonpath(['/usr/lib', '/usr/local/lib']) + '/usr' .. function:: dirname(path) |