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