mirror of
https://git.freebsd.org/ports.git
synced 2025-06-20 04:00:41 -04:00
13 lines
564 B
Text
13 lines
564 B
Text
--- 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:
|