summaryrefslogtreecommitdiff
path: root/tools/gyp/pylib/gyp/MSVSNew.py
diff options
context:
space:
mode:
authorMichaël Zasso <targos@protonmail.com>2019-10-09 10:05:50 +0200
committerMichaël Zasso <targos@protonmail.com>2019-10-13 20:28:08 +0200
commit66b953207d6f0e9c98155af97147a731b2e461bd (patch)
tree3e0bc55ff28abc187be7b7985fe58dbea54da521 /tools/gyp/pylib/gyp/MSVSNew.py
parent7de5a557103dd689bd9a757720eca72459d86e66 (diff)
downloadandroid-node-v8-66b953207d6f0e9c98155af97147a731b2e461bd.tar.gz
android-node-v8-66b953207d6f0e9c98155af97147a731b2e461bd.tar.bz2
android-node-v8-66b953207d6f0e9c98155af97147a731b2e461bd.zip
tools: port Python 3 compat patches from node-gyp to gyp
Refs: https://github.com/nodejs/node-gyp/pull/1820 Refs: https://github.com/nodejs/node-gyp/pull/1843 PR-URL: https://github.com/nodejs/node/pull/29897 Reviewed-By: Christian Clauss <cclauss@me.com> Reviewed-By: Sam Roberts <vieuxtech@gmail.com>
Diffstat (limited to 'tools/gyp/pylib/gyp/MSVSNew.py')
-rw-r--r--tools/gyp/pylib/gyp/MSVSNew.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/gyp/pylib/gyp/MSVSNew.py b/tools/gyp/pylib/gyp/MSVSNew.py
index 0ec628cc1f..9b64e2c1c8 100644
--- a/tools/gyp/pylib/gyp/MSVSNew.py
+++ b/tools/gyp/pylib/gyp/MSVSNew.py
@@ -45,7 +45,7 @@ def MakeGuid(name, seed='msvs_new'):
not change when the project for a target is rebuilt.
"""
# Calculate a MD5 signature for the seed and name.
- d = hashlib.md5(str(seed) + str(name)).hexdigest().upper()
+ d = hashlib.md5((str(seed) + str(name)).encode('utf-8')).hexdigest().upper()
# Convert most of the signature to GUID form (discard the rest)
guid = ('{' + d[:8] + '-' + d[8:12] + '-' + d[12:16] + '-' + d[16:20]
+ '-' + d[20:32] + '}')