mirror of
https://github.com/python/cpython.git
synced 2024-12-12 03:04:15 +08:00
Expat parser no longer has a returns_unicode attribute since everything is
Unicode now.
This commit is contained in:
parent
48f4cf9b94
commit
d38d078566
@ -485,8 +485,6 @@ else:
|
||||
parser.EndElementHandler = target.end
|
||||
parser.CharacterDataHandler = target.data
|
||||
encoding = None
|
||||
if not parser.returns_unicode:
|
||||
encoding = "utf-8"
|
||||
target.xml(encoding, None)
|
||||
|
||||
def feed(self, data):
|
||||
|
Loading…
Reference in New Issue
Block a user