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)