Skip to content
Myr

iter_json

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

Closed #1015

authored by Kenneth Reitz · committed by Kenneth Reitz · parent d5572ac · Browse files · 1 file+5 added−0 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+5 added−0 removed

  • other:+5 added−0 removed

1 file+5 added−0 removed

modified:requests/models.py+5 added
540 unmodified lines
541 return json.loads(self.text or self.content)542 except ValueError:543 return None544545 def iter_json(self):546 for line in self.iter_lines():547 if line: # filter out keep-alive new lines548 yield json.loads(line)549550 @property551 def links(self):552 """Returns the parsed header links of the response, if any."""553
32 unmodified lines