comparison mercurial/ui.py @ 34426: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 f61f5af5ed31
children 75de5d456b60
comparison
equal deleted inserted replaced
34425:12bfecd0ffe6 34426:ae2fcf7af409
144 def _get_mgr(self): 144 def _get_mgr(self):
145 if self._mgr is None: 145 if self._mgr is None:
146 self._mgr = urlreq.httppasswordmgrwithdefaultrealm() 146 self._mgr = urlreq.httppasswordmgrwithdefaultrealm()
147 return self._mgr 147 return self._mgr
148 148
149 def add_password(self, *args, **kwargs): 149 def add_password(self, realm, uris, user, passwd):
150 return self._get_mgr().add_password(*args, **kwargs) 150 return self._get_mgr().add_password(realm, uris, user, passwd)
151 151
152 def find_user_password(self, *args, **kwargs): 152 def find_user_password(self, realm, uri):
153 return self._get_mgr().find_user_password(*args, **kwargs) 153 return self._get_mgr().find_user_password(realm, uri)
154 154
155 def _catchterm(*args): 155 def _catchterm(*args):
156 raise error.SignalInterrupt 156 raise error.SignalInterrupt
157 157
158 # unique object used to detect no default value has been provided when 158 # unique object used to detect no default value has been provided when