From 2b54f26c4e4f95d6ec0dce57dde56eb34a022eca Mon Sep 17 00:00:00 2001 From: Dan O'Reilly Date: Fri, 27 Mar 2009 23:13:16 -0400 Subject: [PATCH] Fix another issue with integer keys. --- wicd/misc.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/wicd/misc.py b/wicd/misc.py index 2d552fd..f380794 100644 --- a/wicd/misc.py +++ b/wicd/misc.py @@ -261,7 +261,8 @@ def ParseEncryption(network): else: rep_val = network.get(cur_val[0].lower()) if rep_val: - line = line.replace("$_%s" % cur_val[0], rep_val) + line = line.replace("$_%s" % cur_val[0], + str(rep_val)) config_file = ''.join([config_file, line]) else: print "Ignoring template line: '%s'" % line