Skip to content
Myr

remove iter_json, don't want to commit to it

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 92355ad · Browse files · 2 files+0 added−8 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+0 added−8 removed

  • other:+0 added−8 removed

2 files+0 added−8 removed

modified:requests/models.py-5 removed
556 unmodified lines
557 return json.loads(self.text or self.content)558 except ValueError:559 return None560561 def iter_json(self):562 for line in self.iter_lines():563 if line: # filter out keep-alive new lines564 yield json.loads(line)565561 @property562 def links(self):563 """Returns the parsed header links of the response, if any."""564
32 unmodified lines
modified:requests/sessions.py-3 removed
180 unmodified lines
181182 def __exit__(self, *args):183 self.close()184185 def close(self):186 pass187185 def request(self, method, url,186 params=None,187 data=None,188 headers=None,
141 unmodified lines