Further improve os.path.commonprefix() docs.

Patch by Serhiy Storchaka.
This commit is contained in:
Yury Selivanov 2015-08-19 09:53:28 -04:00
parent e7e69391e3
commit de11561862
1 changed files with 4 additions and 4 deletions

View File

@ -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)