Skip to content

Commit c921c42

Browse files
Update gyp/pylib/gyp/easy_xml.py
Co-authored-by: Christian Clauss <[email protected]>
1 parent 1fad283 commit c921c42

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

gyp/pylib/gyp/easy_xml.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@ def WriteXmlIfChanged(content, path, encoding="utf-8", pretty=False, win32=False
122122

123123
default_encoding = locale.getdefaultlocale()[1]
124124
if default_encoding and default_encoding.upper() != encoding.upper():
125-
if (sys.version_info[0] >= 3) and (sys.version_info[1] >= 7):
125+
if sys.version_info >= (3, 7):
126126
xml_string = xml_string.encode(encoding)
127127
else:
128128
xml_string = xml_string.decode("cp1251").encode(encoding)

0 commit comments

Comments
 (0)