Skip to content
Myr

undo ref trickery

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 e7b31af · Browse files · 1 file+2 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+2 added−3 removed

  • other:+2 added−3 removed

1 file+2 added−3 removed

modified:requests/models.py+2 added-3 removed
239 unmodified lines
240 # Attach Response to Request.241 self.response = r242243 # Give Response some context.244 self.response.request = ref(self)()245 self.response.request.response = ref(self.response)()244 self.response.request = self245246247 def send(self, anyway=False):248 """Sends the HTTP Request. Populates `Request.response`.
59 unmodified lines
308 # Syntax sugar.309 pools = self._pools310311 # Part of a connection pool, so no fancy stuff. Sorry!313 do_block = True312 do_block = False313314 if self.cookies:315 # Skip if 'cookie' header is explicitly set.316 if 'cookie' not in self.headers:
179 unmodified lines