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