diff --git a/docs/client.rst b/docs/client.rst index 245432ea4cb..00ab64c237f 100644 --- a/docs/client.rst +++ b/docs/client.rst @@ -289,7 +289,7 @@ calculate the file SHA1 hash:: >>> def feed_stream(resp, stream): ... h = hashlib.sha1() ... - ... with True: + ... while True: ... chunk = yield from resp.content.readany() ... if not chunk: ... break