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.
C
Cristian Ciupitu committed
11fa0e48a958716186eb99348a46064e944eccf6
Parent: ebc793d
Committed by Serhiy Storchaka <storchaka@gmail.com>
on 2/21/2019, 7:53:06 AM