New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixed #3569 inability to load credentials from .netrc files #3715

Merged
merged 2 commits into from May 26, 2016
Jump to file or symbol
Failed to load files and symbols.
+7 −0
Diff settings

Always

Just for now

Next

Fixed #3569 inability to load credentials from .netrc files

  • Loading branch information...
ssbarnea committed Apr 30, 2016
commit 8467ab2df986111e182438e72b532ceb8510faa8
View
@@ -199,6 +199,13 @@ def parse_credentials(self, netloc):
return userinfo, None
return None, None
def __nonzero__(self):
# needed in order to evalue authentication object to False when we have no credentials, prevents failure to load .netrc files
print("FATAL: %s" % self.passwords)
return bool(self.passwords)
def __bool__(self):
return self.__nonzero__()
class LocalFSAdapter(BaseAdapter):
ProTip! Use n and p to navigate between commits in a pull request.