diff options
author | Paul King <devnull@localhost> | 2011-05-13 22:38:50 +0200 |
---|---|---|
committer | Paul King <devnull@localhost> | 2011-05-13 22:38:50 +0200 |
commit | 99edaae523623d2c84c4127521d2042d8a878132 (patch) | |
tree | b0979cab2ab92c7b4c4b5cacacfd904eb3a8e85a | |
parent | rhino js engine (diff) | |
download | pyload-99edaae523623d2c84c4127521d2042d8a878132.tar.xz |
comment must be preceded by whitespace
-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() |