@autorest/python 6.4.4 → 6.4.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -631,7 +631,7 @@ class Serializer(object):
631
631
  if xml_desc.get("attr", False):
632
632
  if xml_ns:
633
633
  ET.register_namespace(xml_prefix, xml_ns)
634
- xml_name = "{}{}".format(xml_ns, xml_name)
634
+ xml_name = "{% raw %}{{{}}}{}{% endraw %}".format(xml_ns, xml_name)
635
635
  serialized.set(xml_name, new_attr) # type: ignore
636
636
  continue
637
637
  if xml_desc.get("text", False):
@@ -1273,7 +1273,7 @@ def _extract_name_from_internal_type(internal_type):
1273
1273
  xml_name = internal_type_xml_map.get("name", internal_type.__name__)
1274
1274
  xml_ns = internal_type_xml_map.get("ns", None)
1275
1275
  if xml_ns:
1276
- xml_name = "{}{}".format(xml_ns, xml_name)
1276
+ xml_name = "{% raw %}{{{}}}{}{% endraw %}".format(xml_ns, xml_name)
1277
1277
  return xml_name
1278
1278
 
1279
1279
 
@@ -1297,7 +1297,7 @@ def xml_key_extractor(attr, attr_desc, data):
1297
1297
  # Integrate namespace if necessary
1298
1298
  xml_ns = xml_desc.get("ns", internal_type_xml_map.get("ns", None))
1299
1299
  if xml_ns:
1300
- xml_name = "{}{}".format(xml_ns, xml_name)
1300
+ xml_name = "{% raw %}{{{}}}{}{% endraw %}".format(xml_ns, xml_name)
1301
1301
 
1302
1302
  # If it's an attribute, that's simple
1303
1303
  if xml_desc.get("attr", False):
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@autorest/python",
3
- "version": "6.4.4",
3
+ "version": "6.4.5",
4
4
  "description": "The Python extension for generators in AutoRest.",
5
5
  "main": "index.js",
6
6
  "repository": {