commit | 95f1dfc955310c86398fbb430274ec36aa0daad4 | [log] [tgz] |
---|---|---|
author | Victor Stinner <victor.stinner@haypocalc.com> | Mon Jan 10 23:00:36 2011 +0000 |
committer | Victor Stinner <victor.stinner@haypocalc.com> | Mon Jan 10 23:00:36 2011 +0000 |
tree | 11ef7d63060df0710f97800f0fb3c3eae911c5d7 | |
parent | 9971e001ef3aa41aa86528a36e038b1659c753c9 [diff] |
Issue #9566: Fix pyparse.xmlparser.ParseFile() Fix readinst() if file.read(n) returns a bytes object longer than n: return -1 instead of the the buffer size to raise an exception. Simplify also the function code.