bpo-36431: Use PEP 448 dict unpacking for merging two dicts. (GH-12553)
diff --git a/Lib/xml/sax/saxutils.py b/Lib/xml/sax/saxutils.py
index a69c7f7..b4fc2da 100644
--- a/Lib/xml/sax/saxutils.py
+++ b/Lib/xml/sax/saxutils.py
@@ -56,8 +56,7 @@
the optional entities parameter. The keys and values must all be
strings; each key will be replaced with its corresponding value.
"""
- entities = entities.copy()
- entities.update({'\n': ' ', '\r': ' ', '\t':'	'})
+ entities = {**entities, '\n': ' ', '\r': ' ', '\t':'	'}
data = escape(data, entities)
if '"' in data:
if "'" in data: