Skip to content

Commit 5584ab9

Browse files
committed
Clarify documentation (schemeless password matching)
1 parent 6e8cfe6 commit 5584ab9

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

Doc/library/urllib.request.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -989,8 +989,8 @@ These methods are available on :class:`HTTPPasswordMgr` and
989989
*passwd* must be strings. This causes ``(user, passwd)`` to be used as
990990
authentication tokens when authentication for *realm* and a super-URI of any
991991
of the given URIs is given. If a URI includes a scheme, its credentials only
992-
match authentication URIs with the same scheme. A URI without a scheme
993-
matches authentication URIs with any scheme.
992+
match authentication URIs with the same scheme or no scheme. A URI without a
993+
scheme matches authentication URIs with any scheme.
994994

995995
.. versionchanged:: next
996996
Authentication credentials for URIs with a scheme are now scoped by

0 commit comments

Comments
 (0)