From da055d59c63f78d46b2dae66570fdfb26a7857e5 Mon Sep 17 00:00:00 2001 From: BodgeMaster <> Date: Thu, 5 Mar 2020 10:35:53 +0100 Subject: [PATCH] fixed representation of string replacements --- variable_grabbler.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/variable_grabbler.py b/variable_grabbler.py index 98c7d16..4404075 100644 --- a/variable_grabbler.py +++ b/variable_grabbler.py @@ -1,7 +1,7 @@ #!/usr/bin/python2 print """ -Variable Grabbler - version 3.1 +Variable Grabbler - version 3.2 -------------------------------""" # definitions @@ -35,7 +35,7 @@ for variable in config_values: replacement = "" else: replacement = config_values[variable] - print "\"" + replacement + "\"" + print repr(replacement) file_out = open(sys.argv[1], "w") file_out.write(file_content.decode('utf-8').replace("%" + variable + "%", replacement).encode('utf-8')) file_out.close()