Commit 04713553 authored by scottmg@chromium.org's avatar scottmg@chromium.org

Make get_toolchain_if_necessary.py work on Mac again

R=thakis@chromium.org, sebmarchand@chromium.org
BUG=495204,585829

Review URL: https://codereview.chromium.org/1689723002

git-svn-id: svn://svn.chromium.org/chrome/trunk/tools/depot_tools@298720 0039d316-1c4b-4281-b951-d872f2087c98
parent 5fea3877
......@@ -130,7 +130,7 @@ def CalculateHash(root, expected_hash):
path_without_hash = str(path).replace('/', '\\')
if expected_hash:
path_without_hash = path_without_hash.replace(
os.path.join(root, expected_hash), root)
os.path.join(root, expected_hash).replace('/', '\\'), root)
digest.update(path_without_hash)
with open(path, 'rb') as f:
digest.update(f.read())
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment