@@ -11782,6 +11782,13 @@ def get_dynamic_imports():
11782
11782
11783
11783
### ~~~~~~~~~~~~~ XML
11784
11784
11785
+ def _write_data(writer, data):
11786
+ "Writes datachars to writer."
11787
+ if data:
11788
+ data = data.replace("&", "&").replace("<", "<"). \
11789
+ replace("\"", """).replace(">", ">")
11790
+ writer.write(data)
11791
+
11785
11792
class XMLElement(xml.dom.minidom.Element):
11786
11793
def writexml(self, writer, indent="", addindent="", newl=""):
11787
11794
writer.write(indent + "<" + self.tagName)
@@ -11791,7 +11798,7 @@ def writexml(self, writer, indent="", addindent="", newl=""):
11791
11798
11792
11799
for a_name in a_names:
11793
11800
writer.write(f" {a_name}=\"")
11794
- xml.dom.minidom. _write_data(writer, attrs[a_name].value)
11801
+ _write_data(writer, attrs[a_name].value)
11795
11802
writer.write("\"")
11796
11803
if self.childNodes:
11797
11804
if not self.ownerDocument.padTextNodeWithoutSiblings and len(self.childNodes) == 1 and isinstance(self.childNodes[0], xml.dom.minidom.Text):
@@ -18215,7 +18222,7 @@ def alarm_handler(signum, frame):
18215
18222
_CACHE_DIR = get_env('MX_CACHE_DIR', join(dot_mx_dir(), 'cache'))
18216
18223
18217
18224
# The version must be updated for every PR (checked in CI) and the comment should reflect the PR's issue
18218
- version = VersionSpec("7.34.2 ") # [GR-59700] set JVMCI_VERSION_CHECK to ignore when calling a fetch-jdk provider
18225
+ version = VersionSpec("7.35.0 ") # [GR-59726] Fix use of internal xml function changed in Python 3.13+
18219
18226
18220
18227
_mx_start_datetime = datetime.utcnow()
18221
18228
0 commit comments