fixed representation of string replacements

master
BodgeMaster 2020-03-05 10:35:53 +01:00
parent a386858546
commit da055d59c6
1 changed files with 2 additions and 2 deletions

View File

@ -1,7 +1,7 @@
#!/usr/bin/python2 #!/usr/bin/python2
print """ print """
Variable Grabbler - version 3.1 Variable Grabbler - version 3.2
-------------------------------""" -------------------------------"""
# definitions # definitions
@ -35,7 +35,7 @@ for variable in config_values:
replacement = "" replacement = ""
else: else:
replacement = config_values[variable] replacement = config_values[variable]
print "\"" + replacement + "\"" print repr(replacement)
file_out = open(sys.argv[1], "w") file_out = open(sys.argv[1], "w")
file_out.write(file_content.decode('utf-8').replace("%" + variable + "%", replacement).encode('utf-8')) file_out.write(file_content.decode('utf-8').replace("%" + variable + "%", replacement).encode('utf-8'))
file_out.close() file_out.close()