diff options
Diffstat (limited to 'module')
| -rw-r--r-- | module/ConfigParser.py | 4 | 
1 files changed, 2 insertions, 2 deletions
| diff --git a/module/ConfigParser.py b/module/ConfigParser.py index 3304ec258..81336e119 100644 --- a/module/ConfigParser.py +++ b/module/ConfigParser.py @@ -125,11 +125,11 @@ class ConfigParser:          for line in config:              comment = line.rfind("#") -            if line.find(":", comment) < 0 and line.find("=", comment) < 0 and comment > 0: +            if line.find(":", comment) < 0 and line.find("=", comment) < 0 and comment > 0 and line[comment-1].isspace():                  line = line.rpartition("#") # removes comments                              if line[1]:                      line = line[0] -                else: +                else: rpartition                      line = line[2]              line = line.strip() | 
