Skip to content
Myr

todo

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 9322d13 · Browse files · 1 file+4 added−3 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+4 added−3 removed

  • other:+4 added−3 removed

1 file+4 added−3 removed

modified:requests/models.py+4 added-3 removed
126 unmodified lines
127 _handlers.append(urllib2.HTTPCookieProcessor(self.cookiejar))128129 if self.auth:130 if not isinstance(self.auth.handler, (urllib2.AbstractBasicAuthHandler, urllib2.AbstractDigestAuthHandler)):131 # TODO: REMOVE THIS COMPLETELY132 auth_manager.add_password(self.auth.realm, self.url, self.auth.username, self.auth.password)133 self.auth.handler = self.auth.handler(auth_manager)134 auth_manager.add_auth(self.url, self.auth)135
178 unmodified lines
314 except TypeError, err:315 # timeout argument is new since Python v2.6316 if not "timeout" in str(err):317 raise317 318319 if settings.timeout_fallback:320 # fall-back and use global socket timeout (This is not thread-safe!)321 old_timeout = socket.getdefaulttimeout()322 socket.setdefaulttimeout(self.timeout)322 323324 resp = opener(req)324 325326 if settings.timeout_fallback:327 # restore gobal timeout328 socket.setdefaulttimeout(old_timeout)329
253 unmodified lines