]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
Apply anonymous SF patch #441229.
authorGuido van Rossum <guido@python.org>
Thu, 9 Aug 2001 18:14:59 +0000 (18:14 +0000)
committerGuido van Rossum <guido@python.org>
Thu, 9 Aug 2001 18:14:59 +0000 (18:14 +0000)
commit29206bc8a3641b6d15cd5c30a3a74658d582362a
tree155a31932040b205fa4b2a71b4d30da6764238c0
parent55c12d4d5bd6adc8e60d074fbb5f1d666c87422c
Apply anonymous SF patch #441229.

  Previously, f.read() and f.readlines() checked for
  errors on their file object and possibly raised an
  IOError, but f.readline() didn't. This patch makes
  f.readline() behave like the others.

Note that I've added a call to clearerr() since the other calls to
ferror() include that too.

I have no way to test this code. :-)
Objects/fileobject.c