Skip to content

Commit 492a5f2

Browse files
authored
Merge branch '3.10' into dmelfi/update-pip-and-other-external-libraries
2 parents 762b4e8 + e1a8a03 commit 492a5f2

File tree

2 files changed

+12
-5
lines changed

2 files changed

+12
-5
lines changed

Doc/library/os.path.rst

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff 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

Doc/library/wsgiref.rst

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,11 @@
1111

1212
--------------
1313

14+
.. warning::
15+
16+
:mod:`wsgiref` is a reference implementation and is not recommended for
17+
production. The module only implements basic security checks.
18+
1419
The Web Server Gateway Interface (WSGI) is a standard interface between web
1520
server software and web applications written in Python. Having a standard
1621
interface makes it easy to use an application that supports WSGI with a number

0 commit comments

Comments
 (0)