Show More
@@ -80,13 +80,13 b' class config(object):' | |||||
80 | self._source.pop((section, item), None) |
|
80 | self._source.pop((section, item), None) | |
81 |
|
81 | |||
82 | def parse(self, src, data, sections=None, remap=None, include=None): |
|
82 | def parse(self, src, data, sections=None, remap=None, include=None): | |
83 |
sectionre = util.compile |
|
83 | sectionre = util.re.compile(r'\[([^\[]+)\]') | |
84 |
itemre = util.compile |
|
84 | itemre = util.re.compile(r'([^=\s][^=]*?)\s*=\s*(.*\S|)') | |
85 |
contre = util.compile |
|
85 | contre = util.re.compile(r'\s+(\S|\S.*\S)\s*$') | |
86 |
emptyre = util.compile |
|
86 | emptyre = util.re.compile(r'(;|#|\s*$)') | |
87 |
commentre = util.compile |
|
87 | commentre = util.re.compile(r'(;|#)') | |
88 |
unsetre = util.compile |
|
88 | unsetre = util.re.compile(r'%unset\s+(\S+)') | |
89 |
includere = util.compile |
|
89 | includere = util.re.compile(r'%include\s+(\S|\S.*\S)\s*$') | |
90 | section = "" |
|
90 | section = "" | |
91 | item = None |
|
91 | item = None | |
92 | line = 0 |
|
92 | line = 0 |
General Comments 0
You need to be logged in to leave comments.
Login now