[Python-checkins] cpython (3.5): Further improve os.path.commonprefix() docs.

yury.selivanov python-checkins at python.org
Wed Aug 19 15:54:02 CEST 2015


https://hg.python.org/cpython/rev/b5b46f796964
changeset:   97455:b5b46f796964
branch:      3.5
parent:      97451:0e2620831f17
user:        Yury Selivanov <yselivanov at sprymix.com>
date:        Wed Aug 19 09:53:28 2015 -0400
summary:
  Further improve os.path.commonprefix() docs.

Patch by Serhiy Storchaka.

files:
  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
--- a/Doc/library/os.path.rst
+++ b/Doc/library/os.path.rst
@@ -92,11 +92,11 @@
 
       ::
 
-        >>> 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)

-- 
Repository URL: https://hg.python.org/cpython


More information about the Python-checkins mailing list