projects
/
lilass.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
48a8774
)
explain why there is no strip() call for the value
author
Ralf Jung
<post@ralfj.de>
Sat, 6 Oct 2012 10:06:09 +0000
(12:06 +0200)
committer
Ralf Jung
<post@ralfj.de>
Sat, 6 Oct 2012 10:06:09 +0000
(12:06 +0200)
dsl.py
patch
|
blob
|
history
diff --git
a/dsl.py
b/dsl.py
index d959b074f6a03fca43f9cb08274de227741fb114..d14675fb68396900310b41e46ee218fb1c2a4118 100755
(executable)
--- a/
dsl.py
+++ b/
dsl.py
@@
-26,8
+26,7
@@
def loadConfigFile(file):
# parse line
pos = line.index("=") # will raise exception when substring is not found
curKey = line[:pos].strip()
# parse 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
except Exception:
raise Exception("Invalid config, line %d: Error parsing line (quoting issue?)" % linenr)
# add some convencience get functions