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 bd2b0c4 · Browse files · 2 files+4 added−4 removed
This commit

State

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

Diff stats

2 files+4 added−4 removed

  • other:+4 added−4 removed

2 files+4 added−4 removed

modified:requests/api.py+1 added-1 removed
10 unmodified lines
1112"""1314import config15from .models import Request, Response, AuthObject15from .models import Request, Response16from .status_codes import codes17from .hooks import dispatch_hook18from .utils import cookiejar_from_dict, header_expand19
140 unmodified lines
modified:requests/models.py+3 added-3 removed
80 unmodified lines
81 #: content and metadata of HTTP Response, once :attr:`sent <send>`.82 self.response = Response()8384 #: :class:`AuthObject` to attach to :class:`Request <Request>`.85 # self.auth = auth85 self.auth = auth8687 #: CookieJar to attach to :class:`Request <Request>`.88 self.cookies = cookies89
70 unmodified lines
160 (self.allow_redirects))161 ):162163 # We already redirected. Don't keep it alive.164 r.raw.close()164 # r.raw.close()165166 # Woah, this is getting crazy.167 if len(history) >= settings.max_redirects:168 raise TooManyRedirects()
26 unmodified lines
195196 # Create the new Request.197 request = Request(198 url, self.headers, self.files, method,199 self.data, self.params, self.auth, self.cookiejar,199 self.data, self.params, self.auth, self.cookies,200201 # Flag as part of a redirect loop.202 redirect=True203 )
218 unmodified lines