diff options
| author | Victor Stinner <victor.stinner@haypocalc.com> | 2011-01-10 23:00:36 (GMT) |
|---|---|---|
| committer | Victor Stinner <victor.stinner@haypocalc.com> | 2011-01-10 23:00:36 (GMT) |
| commit | 95f1dfc955310c86398fbb430274ec36aa0daad4 (patch) | |
| tree | 11ef7d63060df0710f97800f0fb3c3eae911c5d7 /Lib/test/bad_coding.py | |
| parent | 9971e001ef3aa41aa86528a36e038b1659c753c9 (diff) | |
| download | cpython-95f1dfc955310c86398fbb430274ec36aa0daad4.zip cpython-95f1dfc955310c86398fbb430274ec36aa0daad4.tar.gz cpython-95f1dfc955310c86398fbb430274ec36aa0daad4.tar.bz2 | |
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.
Diffstat (limited to 'Lib/test/bad_coding.py')
0 files changed, 0 insertions, 0 deletions
