Fix for newer Pythons
This commit is contained in:
parent
55255578bb
commit
2efe294efb
@ -216,7 +216,7 @@ def fireplace_string_encode(input):
|
||||
str_list = []
|
||||
for c in input:
|
||||
if (000 <= ord(c) and ord(c) <= 037) or c == '"' or c == "\\":
|
||||
str_list.append("\\{0:03o}" % ord(c))
|
||||
str_list.append("\\{0:03o}".format(ord(c)))
|
||||
else:
|
||||
str_list.append(c)
|
||||
return '"' + ''.join(str_list) + '"'
|
||||
|
Loading…
Reference in New Issue
Block a user