Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(118)

Unified Diff: tools/checkdeps/checkdeps.py

Issue 8609003: Allow checkdeps to function in the presence of File(). (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 9 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/checkdeps/checkdeps.py
===================================================================
--- tools/checkdeps/checkdeps.py (revision 110866)
+++ tools/checkdeps/checkdeps.py (working copy)
@@ -246,6 +246,9 @@
def FromImpl(unused, unused2):
pass # NOP function so "From" doesn't fail.
+ def FileImpl(unused):
+ pass # NOP function so "File" doesn't fail.
+
class _VarImpl:
def __init__(self, local_scope):
self._local_scope = local_scope
@@ -257,7 +260,11 @@
raise Error("Var is not defined: %s" % var_name)
local_scope = {}
- global_scope = {"From": FromImpl, "Var": _VarImpl(local_scope).Lookup}
+ global_scope = {
+ "File": FileImpl,
+ "From": FromImpl,
+ "Var": _VarImpl(local_scope).Lookup,
+ }
deps_file = os.path.join(dir_name, "DEPS")
if os.path.isfile(deps_file):
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698