git://git.onelab.eu
/
sfa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
41f9554
)
fix out output_shell handles bools
author
Tony Mack
<tmack@paris.CS.Princeton.EDU>
Mon, 6 Aug 2012 00:09:28 +0000
(20:09 -0400)
committer
Tony Mack
<tmack@paris.CS.Princeton.EDU>
Mon, 6 Aug 2012 00:09:28 +0000
(20:09 -0400)
sfa/util/config.py
patch
|
blob
|
history
diff --git
a/sfa/util/config.py
b/sfa/util/config.py
index
2c06736
..
3a3d36a
100644
(file)
--- a/
sfa/util/config.py
+++ b/
sfa/util/config.py
@@
-162,8
+162,8
@@
DO NOT EDIT. This file was automatically generated at
# bash does not have the concept of NULL
if value:
option = "%s_%s" % (section.upper(), name.upper())
- if
not value.isdigit() and not bool(value
):
- value =
"'%s'" % value
+ if
bool(value) and not value.isdigit(
):
+ value =
str(bool(value))
buf.write(option + "=" + value + os.linesep)
return buf.getvalue()