Skip to content

Commit fa43ff8

Browse files
authored
Remove duplicated recommendation to use commonpath().
1 parent 5704727 commit fa43ff8

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

Doc/library/os.path.rst

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -103,12 +103,11 @@ the :mod:`glob` module.)
103103

104104
.. danger::
105105

106+
This function may return invalid paths because it works a
107+
character at a time.
106108
If you need a **common path prefix**, then the algorithm
107109
implemented in this function is not secure. Use
108110
:func:`commonpath` for finding a common path prefix.
109-
This function may return invalid paths because it works a
110-
character at a time. To obtain a valid path, see
111-
:func:`commonpath`.
112111

113112
::
114113

0 commit comments

Comments
 (0)