summaryrefslogtreecommitdiffstats
path: root/Doc/library/os.path.rst
diff options
context:
space:
mode:
authorYury Selivanov <yselivanov@sprymix.com>2015-08-19 13:53:28 (GMT)
committerYury Selivanov <yselivanov@sprymix.com>2015-08-19 13:53:28 (GMT)
commitde1156186260fe74a1c803f3adbc680e271b7f0a (patch)
treec7b414c6d0bebe7cbd11942d91054821ad1477d9 /Doc/library/os.path.rst
parente7e69391e362fbb3de2a2da7beaebb4b7d6cf612 (diff)
downloadcpython-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.rst8
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)