MCPcopy Index your code
hub / github.com/python/cpython / update_authenticated

Method update_authenticated

Lib/urllib/request.py:892–900  ·  view source on GitHub ↗
(self, uri, is_authenticated=False)

Source from the content-addressed store, hash-verified

890 super().add_password(realm, uri, user, passwd)
891
892 def update_authenticated(self, uri, is_authenticated=False):
893 # uri could be a single URI or a sequence
894 if isinstance(uri, str):
895 uri = [uri]
896
897 for default_port in True, False:
898 for u in uri:
899 reduced_uri = self.reduce_uri(u, default_port)
900 self.authenticated[reduced_uri] = is_authenticated
901
902 def is_authenticated(self, authuri):
903 for default_port in True, False:

Callers 2

add_passwordMethod · 0.95
http_responseMethod · 0.80

Calls 1

reduce_uriMethod · 0.80

Tested by

no test coverage detected