diff options
author | scauligi <scauligi@eng.ucsd.edu> | 2018-02-03 21:44:49 -0800 |
---|---|---|
committer | Ingy döt Net <ingy@ingy.net> | 2019-02-27 18:07:29 -0800 |
commit | d13a3d0f9684351b357b7bf55df2cef050ddfbc6 (patch) | |
tree | 5f9724f220d6e5ab5bfa502cecf72c37e5175e9f /lib3 | |
parent | 9959328b41ee577c6f14e3a0184b07dd0ecadb8c (diff) | |
download | pyyaml-d13a3d0f9684351b357b7bf55df2cef050ddfbc6.tar.gz |
Fix for bug https://github.com/yaml/pyyaml/issues/118
Diffstat (limited to 'lib3')
-rw-r--r-- | lib3/yaml/emitter.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib3/yaml/emitter.py b/lib3/yaml/emitter.py index 5704bc8..a664d01 100644 --- a/lib3/yaml/emitter.py +++ b/lib3/yaml/emitter.py @@ -604,7 +604,7 @@ class Emitter: 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) |