bitbake/lib/bb/__init__.py:
authorHolger Hans Peter Freyther <zecke@selfish.org>
Sun, 26 Feb 2006 11:02:09 +0000 (11:02 +0000)
committerHolger Hans Peter Freyther <zecke@selfish.org>
Sun, 26 Feb 2006 11:02:09 +0000 (11:02 +0000)
    Remove the configuration reading class. We have
    two parsers already

lib/bb/__init__.py

index d382f25..f83ffdc 100644 (file)
@@ -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)