From 2357a6077f3a6ffe3988210a0b3d3528ac93534e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ren=C3=A9=20=27Necoro=27=20Neumann?= Date: Sun, 5 Jul 2009 04:13:33 +0200 Subject: Allow ':' in expression names. Thus removing the colon as an assignment operator --- portato/config_parser.py | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'portato') diff --git a/portato/config_parser.py b/portato/config_parser.py index cbf993f..39234a9 100644 --- a/portato/config_parser.py +++ b/portato/config_parser.py @@ -19,9 +19,6 @@ Thus it keeps comments and structuring of the file. :Variables: - DELIMITER : string[] - list of delimiters allowed - COMMENT : string [] comment marks allowed @@ -48,14 +45,13 @@ from threading import Lock from .helper import debug, error -DELIMITER = ["=", ":"] COMMENT = [";","#"] # precompiled expressions TRUE = re.compile("((true)|(1)|(on)|(wahr)|(ja)|(yes))", re.I) FALSE = re.compile("((false)|(0)|(off)|(falsch)|(nein)|(no))", re.I) SECTION = re.compile("\s*\[(?P\w(\w|[-_])*)\]\s*") -EXPRESSION = re.compile(r"\s*(?P\w(\w|[-_])*)\s*[:=]\s*(?P.*)\s*") +EXPRESSION = re.compile(r"\s*(?P\w(\w|[-_:])*)\s*=\s*(?P.*)\s*") class KeyNotFoundException (KeyError): """ -- cgit v1.2.3