summaryrefslogtreecommitdiffstats
path: root/bitbake/lib/bb/codeparser.py
diff options
context:
space:
mode:
Diffstat (limited to 'bitbake/lib/bb/codeparser.py')
-rw-r--r--bitbake/lib/bb/codeparser.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/bitbake/lib/bb/codeparser.py b/bitbake/lib/bb/codeparser.py
index 21a36f64ca..269016ee89 100644
--- a/bitbake/lib/bb/codeparser.py
+++ b/bitbake/lib/bb/codeparser.py
@@ -240,6 +240,9 @@ class PythonParser():
240 self.unhandled_message = "while parsing %s, %s" % (name, self.unhandled_message) 240 self.unhandled_message = "while parsing %s, %s" % (name, self.unhandled_message)
241 241
242 def parse_python(self, node): 242 def parse_python(self, node):
243 if not node or not node.strip():
244 return
245
243 h = hash(str(node)) 246 h = hash(str(node))
244 247
245 if h in codeparsercache.pythoncache: 248 if h in codeparsercache.pythoncache: