From 2275223636440834b76c13970208232e86d81cae Mon Sep 17 00:00:00 2001 From: scauligi Date: Sat, 3 Feb 2018 21:44:49 -0800 Subject: [PATCH] fixes #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)