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 @@ -93,15 +93,17 @@ the :mod:`glob` module.)
9393
9494.. function :: commonprefix(list)
9595
96- Return the longest path prefix (taken character-by-character) that is a
97- prefix of all paths in *list *. If *list * is empty, return the empty string
96+ Return the longest string prefix (taken character-by-character) that is a
97+ prefix of all strings in *list *. If *list * is empty, return the empty string
9898 (``'' ``).
9999
100- .. note ::
100+ .. warning ::
101101
102102 This function may return invalid paths because it works a
103- character at a time. To obtain a valid path, see
104- :func: `commonpath `.
103+ character at a time.
104+ If you need a **common path prefix **, then the algorithm
105+ implemented in this function is not secure. Use
106+ :func: `commonpath ` for finding a common path prefix.
105107
106108 ::
107109
You can’t perform that action at this time.
0 commit comments