Remove some leftovers.
This commit is contained in:
parent
f9d96d7210
commit
4fa5e1a442
|
@ -20,8 +20,8 @@ QuotedStrings = {"'": re.compile(r"'([^'\r\n]*)'"), '"': re.compile(r'"([^"\r\n]
|
||||||
Section = re.compile(r"\[([^\r\n\]]+)\][ \f\t]*")
|
Section = re.compile(r"\[([^\r\n\]]+)\][ \f\t]*")
|
||||||
Setting = re.compile(r"(\w+)\s*=\s*")
|
Setting = re.compile(r"(\w+)\s*=\s*")
|
||||||
|
|
||||||
PaletteColours = '(?:(?:#[0-9a-fA-F]{12}:){15}#[0-9a-fA-F]{12})'
|
PaletteColours = '(?:#[0-9a-fA-F]{12}:){15}#[0-9a-fA-F]{12}'
|
||||||
SingleColour = '(?:#[0-9a-fA-F]{6}|#[0-9a-fA-F]{3})'
|
SingleColour = '#[0-9a-fA-F]{6}|#[0-9a-fA-F]{3}'
|
||||||
|
|
||||||
Colourvalue = re.compile(group(PaletteColours, SingleColour))
|
Colourvalue = re.compile(group(PaletteColours, SingleColour))
|
||||||
Barevalue = re.compile(r'((?:[^\r\n# \f\t]+|[^\r\n#]+(?!' + Ignore.pattern +'))+)')
|
Barevalue = re.compile(r'((?:[^\r\n# \f\t]+|[^\r\n#]+(?!' + Ignore.pattern +'))+)')
|
||||||
|
@ -167,8 +167,7 @@ class ConfigFile:
|
||||||
self._currvalue = value
|
self._currvalue = value
|
||||||
|
|
||||||
def _line_ok(self):
|
def _line_ok(self):
|
||||||
section, setting, value = self._currsection, self._currsetting, self._currvalue
|
if self._currvalue is None: return
|
||||||
if value is None: return
|
|
||||||
else:
|
else:
|
||||||
try:
|
try:
|
||||||
self.callback(self._currsection, self._currsetting, self._currvalue)
|
self.callback(self._currsection, self._currsetting, self._currvalue)
|
||||||
|
|
Loading…
Reference in New Issue