summaryrefslogtreecommitdiffstats
path: root/tools/sync-webkit-git.py
diff options
context:
space:
mode:
authorevan@chromium.org <evan@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-07-12 19:21:14 +0000
committerevan@chromium.org <evan@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-07-12 19:21:14 +0000
commit78f87ba172e524823776903a63be5958641ef421 (patch)
treea88900d3caafb204f5968b1e23dae7e74a768134 /tools/sync-webkit-git.py
parent3581bac6e34de899951df84bbe8a4aeaf4735917 (diff)
downloadchromium_src-78f87ba172e524823776903a63be5958641ef421.zip
chromium_src-78f87ba172e524823776903a63be5958641ef421.tar.gz
chromium_src-78f87ba172e524823776903a63be5958641ef421.tar.bz2
sync-webkit-git: work around From() in DEPS
We don't need From() to do anything, we just need it to be available. Review URL: http://codereview.chromium.org/7349013 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@92213 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'tools/sync-webkit-git.py')
-rwxr-xr-xtools/sync-webkit-git.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/tools/sync-webkit-git.py b/tools/sync-webkit-git.py
index 96ecc15..4a99886 100755
--- a/tools/sync-webkit-git.py
+++ b/tools/sync-webkit-git.py
@@ -1,5 +1,5 @@
#!/usr/bin/python
-# Copyright (c) 2010 The Chromium Authors. All rights reserved.
+# Copyright (c) 2011 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
@@ -57,7 +57,8 @@ def GetGClientBranchName():
def GetWebKitRev():
"""Extract the 'webkit_revision' variable out of DEPS."""
- locals = {'Var': lambda _: locals["vars"][_]}
+ locals = {'Var': lambda _: locals["vars"][_],
+ 'From': lambda *args: None}
execfile('DEPS', {}, locals)
return locals['vars']['webkit_revision']