]> granicus.if.org Git - python/commit
In open(), only set the buffer size from st.st_blksize when it is greater
authorAntoine Pitrou <solipsis@pitrou.net>
Wed, 27 Oct 2010 19:45:43 +0000 (19:45 +0000)
committerAntoine Pitrou <solipsis@pitrou.net>
Wed, 27 Oct 2010 19:45:43 +0000 (19:45 +0000)
commitea5d17d9afd3e5eb9ab317665f9d28bd2d59d669
treecbd77ba59f118cde82025dfdc3e6bf96185eb253
parentd72402effcc3ab4dd8dbdfc1e6f12aebcf3d3e13
In open(), only set the buffer size from st.st_blksize when it is greater
than 1.  This matches the pure Python implementation in _pyio and should
fix a couple of failures on the NetBSD buildbot.
Modules/_io/_iomodule.c