Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(4847)

#1470548: Bugfix for #1470540 (XMLGenerator cannot output UTF-16)

Can't Edit
Can't Publish+Mail
Start Review
Created:
11 months, 3 weeks ago by ngrig
Modified:
2 months, 3 weeks ago
Reviewers:
martin, storchaka, pitrou
CC:
loewis, doerwalter, Georg, ngrig_users.sourceforge.net, AntoinePitrou, larry, Benjamin Peterson, Arfrever.FTA_GMail.Com, BreamoreBoy, devnull_psf.upfronthosting.co.za, storchaka, neoecos
Visibility:
Public.

Patch Set 1 #

Total comments: 4

Patch Set 2 #

Patch Set 3 #

Total comments: 8

Patch Set 4 #

Patch Set 5 #

Patch Set 6 #

Unified diffs Side-by-side diffs Delta from patch set Stats Patch
Lib/test/test_sax.py View 1 2 3 4 5 1 chunk +15 lines, -0 lines 0 comments Download
Lib/xml/sax/saxutils.py View 1 2 3 4 5 1 chunk +7 lines, -3 lines 0 comments Download

Messages

Total messages: 4
loewis
http://bugs.python.org/review/1470548/diff/5039/Lib/xml/sax/saxutils.py File Lib/xml/sax/saxutils.py (right): http://bugs.python.org/review/1470548/diff/5039/Lib/xml/sax/saxutils.py#newcode18 Lib/xml/sax/saxutils.py:18: _error_handling = "strict" I think this variable _error_handling can ...
11 months, 3 weeks ago #1
storchaka
http://bugs.python.org/review/1470548/diff/5039/Lib/xml/sax/saxutils.py File Lib/xml/sax/saxutils.py (right): http://bugs.python.org/review/1470548/diff/5039/Lib/xml/sax/saxutils.py#newcode18 Lib/xml/sax/saxutils.py:18: _error_handling = "strict" On 2012/05/30 19:06:39, loewis wrote: > ...
11 months, 3 weeks ago #2
AntoinePitrou
http://bugs.python.org/review/1470548/diff/5409/Lib/test/test_sax.py File Lib/test/test_sax.py (right): http://bugs.python.org/review/1470548/diff/5409/Lib/test/test_sax.py#newcode165 Lib/test/test_sax.py:165: result = BytesIO() Is output to a StringIO still ...
4 months, 3 weeks ago #3
storchaka
4 months, 3 weeks ago #4
http://bugs.python.org/review/1470548/diff/5409/Lib/test/test_sax.py
File Lib/test/test_sax.py (right):

http://bugs.python.org/review/1470548/diff/5409/Lib/test/test_sax.py#newcode165
Lib/test/test_sax.py:165: result = BytesIO()
On 2012/12/28 13:37:33, AntoinePitrou wrote:
> Is output to a StringIO still tested somewhere?

No.

http://bugs.python.org/review/1470548/diff/5409/Lib/xml/sax/saxutils.py
File Lib/xml/sax/saxutils.py (right):

http://bugs.python.org/review/1470548/diff/5409/Lib/xml/sax/saxutils.py#newco...
Lib/xml/sax/saxutils.py:80: import sys
On 2012/12/28 13:37:33, AntoinePitrou wrote:
> You should import sys at the top level.

This was in old code.

http://bugs.python.org/review/1470548/diff/5409/Lib/xml/sax/saxutils.py#newco...
Lib/xml/sax/saxutils.py:101: try:
On 2012/12/28 13:37:33, AntoinePitrou wrote:
> If it only has a write() method then this "try" block is useless.

However it can have not only a write() method.

http://bugs.python.org/review/1470548/diff/5409/Lib/xml/sax/saxutils.py#newco...
Lib/xml/sax/saxutils.py:122: self._close
On 2012/12/28 13:37:33, AntoinePitrou wrote:
> self._close(), no?

Yes, of course.
Sign in to reply to this message.

RSS Feeds Recent Issues | This issue
This is Rietveld cbc36f91f3f7