diff options
author | Holger Hans Peter Freyther <zecke@selfish.org> | 2006-02-26 11:02:09 +0000 |
---|---|---|
committer | Holger Hans Peter Freyther <zecke@selfish.org> | 2006-02-26 11:02:09 +0000 |
commit | 7dc97df197bde5dde7fffad737f493b0cb94c576 (patch) | |
tree | 87a7a15b251d168736b9b4ac4692a2dbab74fa09 | |
parent | f856d4e8a75c7c219f80cdf7a7d30a815427aedc (diff) | |
download | bitbake-7dc97df197bde5dde7fffad737f493b0cb94c576.tar.gz |
bitbake/lib/bb/__init__.py:
Remove the configuration reading class. We have
two parsers already
-rw-r--r-- | lib/bb/__init__.py | 32 |
1 files changed, 0 insertions, 32 deletions
diff --git a/lib/bb/__init__.py b/lib/bb/__init__.py index d382f2524..f83ffdc77 100644 --- a/lib/bb/__init__.py +++ b/lib/bb/__init__.py @@ -1229,38 +1229,6 @@ class digraph: mygraph.okeys=self.okeys[:] return mygraph -####################################################################### -####################################################################### -# -# SECTION: Config -# -# PURPOSE: Reading and handling of system/target-specific/local configuration -# reading of package configuration -# -####################################################################### -####################################################################### - -def reader(cfgfile, feeder): - """Generic configuration file reader that opens a file, reads the lines, - handles continuation lines, comments, empty lines and feed all read lines - into the function feeder(lineno, line). - """ - - f = open(cfgfile,'r') - lineno = 0 - while 1: - lineno = lineno + 1 - s = f.readline() - if not s: break - 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 - feeder(lineno, s) - if __name__ == "__main__": import doctest, bb doctest.testmod(bb) |