From d8413efc1daaf5cbf635394e2cf95fb339f1d462 Mon Sep 17 00:00:00 2001 From: Mike Auty Date: Mon, 25 Feb 2019 22:51:41 +0000 Subject: [PATCH] Add in further ignoring of the 0xf7 unicode character. --- development/llvm2json.py | 1 + 1 file changed, 1 insertion(+) diff --git a/development/llvm2json.py b/development/llvm2json.py index 3a51b7dd2..5965d831f 100644 --- a/development/llvm2json.py +++ b/development/llvm2json.py @@ -301,6 +301,7 @@ if __name__ == '__main__': print("[*] Loading YAML data...") ryaml = yaml.YAML() yaml.reader.Reader.NON_PRINTABLE = re.compile(u'[^\x09\x0A\x0D\x20-\x7F\x85' u'\xA0-\uD7FF' u'\uE000-\uFFFD' u']') + yaml.reader.Reader._printable_ascii = ('\x09\x0A\x0D' + ''.join(map(chr, range(0x20, 0x80)))).encode('ascii') data = ryaml.load(file_data) print("[*] Converting the YAML to JSON...")