blob: 8f9fe46a78a76a0741f584fe7babe3c45799cf2b (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
--- 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:
|