--- apache_conf_parser.py.orig 2011-04-12 03:06:39 UTC +++ apache_conf_parser.py @@ -466,8 +466,8 @@ class ApacheConfParser(ComplexNode): def __init__(self, source, infile=True, delay=False, count=None): """Count is the starting number for line counting...""" super(ApacheConfParser, self).__init__(_NODES) - self.source = source.splitlines() - if infile: + self.source = source.splitlines() + if infile: self.source = (line.strip("\n") for line in open(source)) self.count = count if not delay: