]> granicus.if.org Git - python/commitdiff
#7386: add example that shows that trailing path separators are stripped.
authorGeorg Brandl <georg@python.org>
Mon, 2 Aug 2010 19:19:26 +0000 (19:19 +0000)
committerGeorg Brandl <georg@python.org>
Mon, 2 Aug 2010 19:19:26 +0000 (19:19 +0000)
Doc/library/os.path.rst

index 819bea9bbbf68f4bc954a2cee36675db44012e30..317f55aa95acb0c9cbe2c14b0842f45643e61345 100644 (file)
@@ -207,7 +207,9 @@ applications should use string objects to access all files.
 .. function:: normpath(path)
 
    Normalize a pathname.  This collapses redundant separators and up-level
-   references so that ``A//B``, ``A/./B`` and ``A/foo/../B`` all become ``A/B``.
+   references so that ``A//B``, ``A/B/``, ``A/./B`` and ``A/foo/../B`` all become
+   ``A/B``.
+
    It does not normalize the case (use :func:`normcase` for that).  On Windows, it
    converts forward slashes to backward slashes. It should be understood that this
    may change the meaning of the path if it contains symbolic links!