From e350782eefb74b58045ec690228c494d3526b07a Mon Sep 17 00:00:00 2001 From: Thierry Parmentelat Date: Thu, 25 Aug 2016 15:55:13 +0200 Subject: [PATCH] update hint link --- PLC/API.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/PLC/API.py b/PLC/API.py index 6e59d56..f09034c 100644 --- a/PLC/API.py +++ b/PLC/API.py @@ -25,7 +25,7 @@ invalid_codepoints = range(0x0, 0x8) + [0xB, 0xC] + range(0xE, 0x1F) str_xml_escape_table = string.maketrans("".join((chr(x) for x in invalid_codepoints)), "?" * len(invalid_codepoints)) # loosely inspired from -# http://www.terminally-incoherent.com/blog/2010/05/06/character-mapping-must-return-integer-none-or-unicode/ +# http://stackoverflow.com/questions/1324067/how-do-i-get-str-translate-to-work-with-unicode-strings unicode_xml_escape_table = { invalid : u"?" for invalid in invalid_codepoints} def xmlrpclib_escape(s, replace = string.replace): -- 2.43.0