Returns the server password or None
(self)
| 169 | return dfltsocket |
| 170 | |
| 171 | def __getpassword(self): |
| 172 | """Returns the server password or None""" |
| 173 | |
| 174 | if self.goodpassword != None: # use cached good one first |
| 175 | return self.goodpassword |
| 176 | |
| 177 | if self.password != None and self.passworderror == None: |
| 178 | return self.password # non-failed preconfigured one |
| 179 | |
| 180 | # get 1) configured password first 2) fall back to asking via UI |
| 181 | self.password = self.repos.getpassword() or \ |
| 182 | self.ui.getpass(self.username, self.config, self.passworderror) |
| 183 | self.passworderror = None |
| 184 | return self.password |
| 185 | |
| 186 | def __md5handler(self, response): |
| 187 | challenge = response.strip() |
no test coverage detected