Show More
@@ -74,7 +74,8 b' class config(object):' | |||
|
74 | 74 | sectionre = re.compile(r'\[([^\[]+)\]') |
|
75 | 75 | itemre = re.compile(r'([^=\s][^=]*?)\s*=\s*(.*\S|)') |
|
76 | 76 | contre = re.compile(r'\s+(\S|\S.*\S)\s*$') |
|
77 | emptyre = re.compile(r'(;|#|\s*$)') | |
|
77 | emptyre = re.compile(r'\s*(;|#|\s*$)') | |
|
78 | commentre = re.compile(r'(;|#)') | |
|
78 | 79 | unsetre = re.compile(r'%unset\s+(\S+)') |
|
79 | 80 | includere = re.compile(r'%include\s+(\S|\S.*\S)\s*$') |
|
80 | 81 | section = "" |
@@ -85,6 +86,8 b' class config(object):' | |||
|
85 | 86 | for l in data.splitlines(True): |
|
86 | 87 | line += 1 |
|
87 | 88 | if cont: |
|
89 | if commentre.match(l): | |
|
90 | continue | |
|
88 | 91 | m = contre.match(l) |
|
89 | 92 | if m: |
|
90 | 93 | if sections and section not in sections: |
General Comments 0
You need to be logged in to leave comments.
Login now