From d13a3d0f9684351b357b7bf55df2cef050ddfbc6 Mon Sep 17 00:00:00 2001 From: scauligi Date: Sat, 3 Feb 2018 21:44:49 -0800 Subject: [PATCH] Fix for bug https://github.com/yaml/pyyaml/issues/118 --- lib3/yaml/emitter.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib3/yaml/emitter.py b/lib3/yaml/emitter.py index 5704bc87..a664d011 100644 --- a/lib3/yaml/emitter.py +++ b/lib3/yaml/emitter.py @@ -604,7 +604,7 @@ def prepare_tag(self, tag): start = end = end+1 data = ch.encode('utf-8') for ch in data: - chunks.append('%%%02X' % ord(ch)) + chunks.append('%%%02X' % ch) if start < end: chunks.append(suffix[start:end]) suffix_text = ''.join(chunks)