File tree Expand file tree Collapse file tree 1 file changed +7
-5
lines changed
Expand file tree Collapse file tree 1 file changed +7
-5
lines changed Original file line number Diff line number Diff line change @@ -95,15 +95,17 @@ the :mod:`glob` module.)
9595
9696.. function :: commonprefix(list)
9797
98- Return the longest path prefix (taken character-by-character) that is a
99- prefix of all paths in *list *. If *list * is empty, return the empty string
98+ Return the longest string prefix (taken character-by-character) that is a
99+ prefix of all strings in *list *. If *list * is empty, return the empty string
100100 (``'' ``).
101101
102- .. note ::
102+ .. warning ::
103103
104104 This function may return invalid paths because it works a
105- character at a time. To obtain a valid path, see
106- :func: `commonpath `.
105+ character at a time.
106+ If you need a **common path prefix **, then the algorithm
107+ implemented in this function is not secure. Use
108+ :func: `commonpath ` for finding a common path prefix.
107109
108110 ::
109111
You can’t perform that action at this time.
0 commit comments