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:
0e705b4
)
fix type bugs
author
Tony Mack
<tmack@paris.CS.Princeton.EDU>
Mon, 16 Jul 2012 16:19:41 +0000
(12:19 -0400)
committer
Tony Mack
<tmack@paris.CS.Princeton.EDU>
Mon, 16 Jul 2012 16:19:41 +0000
(12:19 -0400)
sfa/util/config.py
patch
|
blob
|
history
diff --git
a/sfa/util/config.py
b/sfa/util/config.py
index
7eb9ffa
..
cd3314f
100644
(file)
--- a/
sfa/util/config.py
+++ b/
sfa/util/config.py
@@
-127,7
+127,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())
- value = "'%s'" % value
+ if not value.isdigit() and not bool(value):
+ value = "'%s'" % value
buf.write(option + "=" + value + os.linesep)
return buf.getvalue()