diff options
author | Michael 'Mickey' Lauer <mickey@vanille-media.de> | 2004-04-13 09:12:30 +0000 |
---|---|---|
committer | Michael 'Mickey' Lauer <mickey@vanille-media.de> | 2004-04-13 09:12:30 +0000 |
commit | 012c93c0c758633164951576d318615ce3ad1a01 (patch) | |
tree | 37a8821b7c9bee54229a76595a92390ca5298d33 /bin/oe/parse | |
parent | 20b077d1e92c25d573ca61ae75ceb4424ed35fed (diff) | |
download | bitbake-012c93c0c758633164951576d318615ce3ad1a01.tar.gz |
This patch moves the comment stripping logic a bit later, so that it
only takes effect when not within a function.
Diffstat (limited to 'bin/oe/parse')
-rw-r--r-- | bin/oe/parse/OEHandler.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/bin/oe/parse/OEHandler.py b/bin/oe/parse/OEHandler.py index 6906df36b..7b3898021 100644 --- a/bin/oe/parse/OEHandler.py +++ b/bin/oe/parse/OEHandler.py @@ -96,7 +96,6 @@ def handle(fn, d = {}, include = 0): w = s.strip() if not w: continue # skip empty lines s = s.rstrip() - if s[0] == '#': continue # skip comments while s[-1] == '\\': s2 = f.readline()[:-1].strip() s = s[:-1] + s2 @@ -168,6 +167,8 @@ def feeder(lineno, s, fn, d): __body__.append(s) return + if s[0] == '#': return # skip comments + m = __func_start_regexp__.match(s) if m: __infunc__ = m.group("func") or "__anonymous" |