Skip to content
Myr

cleanups

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by Kenneth Reitz · committed by Kenneth Reitz · parent c9b8750 · Browse files · 1 file+2 added−7 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+2 added−7 removed

  • other:+2 added−7 removed

1 file+2 added−7 removed

modified:requests/core.py+2 added-7 removed
102 unmodified lines
103104 _handlers = []105106 if self.auth:107108 # create a password manager107 108 authr = urllib2.HTTPPasswordMgrWithDefaultRealm()109110 authr.add_password(None, self.url, self.auth.username, self.auth.password)111 auth_handler = urllib2.HTTPBasicAuthHandler(authr)112113 _handlers.append(auth_handler)114116 # use the opener to fetch a URL117# return opener.open115 if self.cookiejar:116 117 cookie_handler = urllib2.HTTPCookieProcessor(cookiejar)118 _handlers.append(cookie_handler)119120 121 opener = urllib2.build_opener(*_handlers)124122 return opener.open126# else:127# return urllib2.urlopen123124125 def _build_response(self, resp):126 """Build internal Response object from given response."""
321 unmodified lines