| Index: pylib/gyp/easy_xml.py
|
| diff --git a/pylib/gyp/easy_xml.py b/pylib/gyp/easy_xml.py
|
| index bf949b6ac9b6e6606a80c5a73cf3ef89e56efffe..864e96a5a106d97e21201a2c98abd246e8ebe70a 100644
|
| --- a/pylib/gyp/easy_xml.py
|
| +++ b/pylib/gyp/easy_xml.py
|
| @@ -5,6 +5,10 @@
|
| import re
|
| import os
|
|
|
| +try:
|
| + reduce
|
| +except NameError:
|
| + from functools import reduce
|
|
|
| def XmlToString(content, encoding='utf-8', pretty=False):
|
| """ Writes the XML content to disk, touching the file only if it has changed.
|
| @@ -79,7 +83,7 @@ def _ConstructContentList(xml_parts, specification, pretty, level=0):
|
| # Optionally in second position is a dictionary of the attributes.
|
| rest = specification[1:]
|
| if rest and isinstance(rest[0], dict):
|
| - for at, val in sorted(rest[0].iteritems()):
|
| + for at, val in sorted(rest[0].items()):
|
| xml_parts.append(' %s="%s"' % (at, _XmlEscape(val, attr=True)))
|
| rest = rest[1:]
|
| if rest:
|
|
|