From 8c92edf8a2aa28dca57bb8a4eb0b1c187dd2e039 Mon Sep 17 00:00:00 2001 From: Tony Mack Date: Mon, 16 Jul 2012 12:19:41 -0400 Subject: [PATCH] fix type bugs --- sfa/util/config.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/sfa/util/config.py b/sfa/util/config.py index 7eb9ffa5..cd3314f4 100644 --- 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() -- 2.43.0