Skip to content

Commit

Permalink
Fix identation
Browse files Browse the repository at this point in the history
  • Loading branch information
asvetlov committed Jan 4, 2015
1 parent 761e2a5 commit 404ae7c
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions docs/client.rst
Original file line number Diff line number Diff line change
Expand Up @@ -163,11 +163,11 @@ In general, however, you should use a pattern like this to save what is being
streamed to a file::

>>> with open(filename, 'wb') as fd:
... while True:
... chunk = yield from r.content.read(chunk_size)
... if not chunk:
... break
... fd.write(chunk)
... while True:
... chunk = yield from r.content.read(chunk_size)
... if not chunk:
... break
... fd.write(chunk)

It is not possible to use ``read()``, ``json()`` and ``text()`` after that.

Expand Down

0 comments on commit 404ae7c

Please sign in to comment.