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

Unified Diff: grit/node/misc.py

Issue 1212703002: grit: Ignore empty file paths when generating input file list (Closed) Base URL: https://chromium.googlesource.com/external/grit-i18n.git@master
Patch Set: comments addressed Created 5 years, 6 months 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 | grit/node/misc_unittest.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: grit/node/misc.py
diff --git a/grit/node/misc.py b/grit/node/misc.py
index 8a0b46f53de370b0c2fe8f0f7978f3b43b402c06..7f450188fc75d48e73bb5d40b4e2e78c69d25b4e 100755
--- a/grit/node/misc.py
+++ b/grit/node/misc.py
@@ -331,7 +331,9 @@ class GritNode(base.Node):
for node in self.ActiveDescendants():
if isinstance(node, (io.FileNode, include.IncludeNode, misc.PartNode,
structure.StructureNode, variant.SkeletonNode)):
- input_files.add(node.GetInputPath())
+ input_path = node.GetInputPath()
+ if input_path is not None:
+ input_files.add(input_path)
self.SetOutputLanguage(old_output_language)
return sorted(map(self.ToRealPath, input_files))
« no previous file with comments | « no previous file | grit/node/misc_unittest.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698