summaryrefslogtreecommitdiffstats
path: root/Lib/xml
diff options
context:
space:
mode:
authorFelix C. Stegerman <flx@obfusk.net>2021-02-24 02:25:31 (GMT)
committerGitHub <noreply@github.com>2021-02-24 02:25:31 (GMT)
commit1f433406bd46fbd00b88223ad64daea6bc9eaadc (patch)
treea02810a5aa293f957052638420626fec4f933d4b /Lib/xml
parentb9fe16a02717e89a2141311de1e36161af4de9a9 (diff)
downloadcpython-1f433406bd46fbd00b88223ad64daea6bc9eaadc.zip
cpython-1f433406bd46fbd00b88223ad64daea6bc9eaadc.tar.gz
cpython-1f433406bd46fbd00b88223ad64daea6bc9eaadc.tar.bz2
bpo-42151: don't set specified_attributes=1 in pure Python ElementTree (GH-22987)
Diffstat (limited to 'Lib/xml')
-rw-r--r--Lib/xml/etree/ElementTree.py2
1 files changed, 0 insertions, 2 deletions
diff --git a/Lib/xml/etree/ElementTree.py b/Lib/xml/etree/ElementTree.py
index 7a26900..168418e 100644
--- a/Lib/xml/etree/ElementTree.py
+++ b/Lib/xml/etree/ElementTree.py
@@ -1560,7 +1560,6 @@ class XMLParser:
# Configure pyexpat: buffering, new-style attribute handling.
parser.buffer_text = 1
parser.ordered_attributes = 1
- parser.specified_attributes = 1
self._doctype = None
self.entity = {}
try:
@@ -1580,7 +1579,6 @@ class XMLParser:
for event_name in events_to_report:
if event_name == "start":
parser.ordered_attributes = 1
- parser.specified_attributes = 1
def handler(tag, attrib_in, event=event_name, append=append,
start=self._start):
append((event, start(tag, attrib_in)))