##// END OF EJS Templates
config: use util.re.compile instead of util.compilere
Siddharth Agarwal -
r21910:fc04fdb2 default
parent child Browse files
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.compilere(r'\[([^\[]+)\]')
83 sectionre = util.re.compile(r'\[([^\[]+)\]')
84 itemre = util.compilere(r'([^=\s][^=]*?)\s*=\s*(.*\S|)')
84 itemre = util.re.compile(r'([^=\s][^=]*?)\s*=\s*(.*\S|)')
85 contre = util.compilere(r'\s+(\S|\S.*\S)\s*$')
85 contre = util.re.compile(r'\s+(\S|\S.*\S)\s*$')
86 emptyre = util.compilere(r'(;|#|\s*$)')
86 emptyre = util.re.compile(r'(;|#|\s*$)')
87 commentre = util.compilere(r'(;|#)')
87 commentre = util.re.compile(r'(;|#)')
88 unsetre = util.compilere(r'%unset\s+(\S+)')
88 unsetre = util.re.compile(r'%unset\s+(\S+)')
89 includere = util.compilere(r'%include\s+(\S|\S.*\S)\s*$')
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