# 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()