From 8f8a22f2791bb91a2448aa60dff148b63d4752a1 Mon Sep 17 00:00:00 2001 From: Matt Wilson Date: Thu, 4 Jan 2001 07:09:18 +0000 Subject: only paste strings into the config file --- simpleconfig.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/simpleconfig.py b/simpleconfig.py index e5a320a3e..c97eb3951 100644 --- a/simpleconfig.py +++ b/simpleconfig.py @@ -7,7 +7,8 @@ class SimpleConfigFile: keys.sort () for key in keys: # FIXME - use proper escaping - s = s + key + "=\"" + self.info[key] + "\"\n" + if type (self.info[key]) == type(""): + s = s + key + "=\"" + self.info[key] + "\"\n" return s def __init__ (self): -- cgit