From 291cd1c2a6963f34d91fb16ef7fa7d33c2441c07 Mon Sep 17 00:00:00 2001 From: Ralf Jung Date: Sat, 6 Oct 2012 12:05:49 +0200 Subject: [PATCH] explain why there is no strip() call for the value --- auto_debuild.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/auto_debuild.py b/auto_debuild.py index 5239e67..7523e53 100755 --- a/auto_debuild.py +++ b/auto_debuild.py @@ -54,8 +54,7 @@ def loadConfigFile(file): # option line pos = line.index("=") # will raise exception when substring is not found curKey = line[:pos].strip() - value = line[pos+1:] - result[curKey] = shlex.split(value) + result[curKey] = shlex.split(line[pos+1:]) # shlex.split also strips except Exception: raise Exception("Invalid config, line %d: Error parsing line (quoting issue?)" % linenr) # add some convencience get functions -- 2.30.2