Return a (user, account, password) tuple for given host.
(self, host)
| 171 | " the owner") |
| 172 | |
| 173 | def authenticators(self, host): |
| 174 | """Return a (user, account, password) tuple for given host.""" |
| 175 | if host in self.hosts: |
| 176 | return self.hosts[host] |
| 177 | elif 'default' in self.hosts: |
| 178 | return self.hosts['default'] |
| 179 | else: |
| 180 | return None |
| 181 | |
| 182 | def __repr__(self): |
| 183 | """Dump the class data in the format of a .netrc file.""" |