Mercurial > hg-stable
changeset 34427:ae2fcf7af409
httppasswordmgrdbproxy: specify exact arguments
We only ever call these functions in a single way, so let's just
actually specify them. We need to do some string/bytes encoding
dancing here for Python 3, so it'll help to know what arguments we
need to convert.
# no-check-commit because I'm modifying functions that check-commit
does not like.
Differential Revision: https://phab.mercurial-scm.org/D885
author | Augie Fackler <augie@google.com> |
---|---|
date | Sun, 01 Oct 2017 07:29:51 -0400 |
parents | 12bfecd0ffe6 |
children | a454123f5d94 |
files | mercurial/ui.py |
diffstat | 1 files changed, 4 insertions(+), 4 deletions(-) [+] |
line wrap: on
line diff
--- a/mercurial/ui.py Sun Oct 01 08:37:04 2017 +0100 +++ b/mercurial/ui.py Sun Oct 01 07:29:51 2017 -0400 @@ -146,11 +146,11 @@ self._mgr = urlreq.httppasswordmgrwithdefaultrealm() return self._mgr - def add_password(self, *args, **kwargs): - return self._get_mgr().add_password(*args, **kwargs) + def add_password(self, realm, uris, user, passwd): + return self._get_mgr().add_password(realm, uris, user, passwd) - def find_user_password(self, *args, **kwargs): - return self._get_mgr().find_user_password(*args, **kwargs) + def find_user_password(self, realm, uri): + return self._get_mgr().find_user_password(realm, uri) def _catchterm(*args): raise error.SignalInterrupt