commit | 11fa0e48a958716186eb99348a46064e944eccf6 | [log] [tgz] |
---|---|---|
author | Cristian Ciupitu <cristian.ciupitu@yahoo.com> | Thu Feb 21 09:53:06 2019 +0200 |
committer | Serhiy Storchaka <storchaka@gmail.com> | Thu Feb 21 09:53:06 2019 +0200 |
tree | 6bbc2f5b96281a5817aaba01987582404d1f7641 | |
parent | ebc793d6acb9650b9f497808e059805892031d74 [diff] |
Doc: fix example for iter() function. (GH-11959) read() returns bytes for a file opened in binary mode, so b'' should be used as a sentinel instead of ''. Otherwise the loop will be infinite.