Staging
v0.8.1
https://github.com/python/cpython
Revision 11fa0e48a958716186eb99348a46064e944eccf6 authored by Cristian Ciupitu on 21 February 2019, 07:53:06 UTC, committed by Serhiy Storchaka on 21 February 2019, 07:53:06 UTC
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.
1 parent ebc793d
History
Tip revision: 11fa0e48a958716186eb99348a46064e944eccf6 authored by Cristian Ciupitu on 21 February 2019, 07:53:06 UTC
Doc: fix example for iter() function. (GH-11959)
Tip revision: 11fa0e4
File Mode Size
ci.yml -rw-r--r-- 3.2 KB
docs-steps.yml -rw-r--r-- 1.3 KB
macos-steps.yml -rw-r--r-- 724 bytes
posix-deps-apt.sh -rwxr-xr-x 580 bytes
posix-steps.yml -rw-r--r-- 2.4 KB
pr.yml -rw-r--r-- 3.1 KB
prebuild-checks.yml -rw-r--r-- 1.2 KB
windows-layout-steps.yml -rw-r--r-- 1.5 KB
windows-steps.yml -rw-r--r-- 1.3 KB

back to top