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

Method add_password

Lib/urllib/request.py:885–890  ·  view source on GitHub ↗
(self, realm, uri, user, passwd, is_authenticated=False)

Source from the content-addressed store, hash-verified

883 super().__init__()
884
885 def add_password(self, realm, uri, user, passwd, is_authenticated=False):
886 self.update_authenticated(uri, is_authenticated)
887 # Add a default for prior auth requests
888 if realm is not None:
889 super().add_password(None, uri, user, passwd)
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

Callers

nothing calls this directly

Calls 3

update_authenticatedMethod · 0.95
superClass · 0.85
add_passwordMethod · 0.45

Tested by

no test coverage detected