Skip to content

Commit d078e7d

Browse files
committed
fix: revert for windows compatibility
1 parent 6a71001 commit d078e7d

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

pylib/gyp/easy_xml.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -123,10 +123,7 @@ def WriteXmlIfChanged(content, path, encoding="utf-8", pretty=False,
123123

124124
default_encoding = locale.getdefaultlocale()[1]
125125
if default_encoding and default_encoding.upper() != encoding.upper():
126-
if win32 and sys.version_info < (3, 7):
127-
xml_string = xml_string.decode("cp1251").encode(encoding)
128-
else:
129-
xml_string = xml_string.encode(encoding)
126+
xml_string = xml_string.encode(encoding)
130127

131128
# Get the old content
132129
try:

0 commit comments

Comments
 (0)