Skip to content

Commit

Permalink
sync-webkit-git: work around From() in DEPS
Browse files Browse the repository at this point in the history
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
  • Loading branch information
evan@chromium.org committed Jul 12, 2011
1 parent 3581bac commit 78f87ba
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions tools/sync-webkit-git.py
Original file line number Diff line number Diff line change
@@ -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.

Expand Down Expand Up @@ -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']

Expand Down

0 comments on commit 78f87ba

Please sign in to comment.