in tools/plugins.py [0:0]
def _authenticate(self):
if self.options.netrc:
return HTTPBasicAuthFromNetrc(url=GERRIT)
elif self.options.anonymous:
return Anonymous()
else:
return self._authenticate_interactive()