projects
/
services
/
python-requests.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
19d38d5
)
first
author
Kenneth Reitz
<me@kennethreitz.com>
Fri, 22 Mar 2013 19:48:27 +0000
(15:48 -0400)
committer
Kenneth Reitz
<me@kennethreitz.com>
Fri, 22 Mar 2013 19:48:27 +0000
(15:48 -0400)
requests/models.py
patch
|
blob
|
history
diff --git
a/requests/models.py
b/requests/models.py
index 838e78a36575ea41c0ad199fc748ea7f09eb6fbf..6e8a7338cb2c2f10b4330ce6f989e950197dc708 100644
(file)
--- a/
requests/models.py
+++ b/
requests/models.py
@@
-399,7
+399,7
@@
class PreparedRequest(RequestEncodingMixin, RequestHooksMixin):
def prepare_auth(self, auth, url=''):
"""Prepares the given HTTP auth data."""
- # If no Auth is explicitly provided, extract it from the URL.
+ # If no Auth is explicitly provided, extract it from the URL
first
.
if auth is None:
url_auth = get_auth_from_url(self.url)
auth = url_auth if any(url_auth) else None