diff options
author | Anthon van der Neut <anthon@mnt.org> | 2018-06-17 16:23:11 +0200 |
---|---|---|
committer | Anthon van der Neut <anthon@mnt.org> | 2018-06-17 16:23:11 +0200 |
commit | 9f2076c62cc42fe572336d92a5a4d71c21eec3bd (patch) | |
tree | 50b7ff8999350d590deaa007b257ca04d2f5b359 /scanner.py | |
parent | d6a64263556f471f9b3fa3cdbff032bc46c8888e (diff) | |
download | ruamel.yaml-9f2076c62cc42fe572336d92a5a4d71c21eec3bd.tar.gz |
fixes issue #201: decoding Unicode
*When this change indeed resolves your problem, please **Close** this issue*.
*(You can do so usingthe WorkFlow pull-down (close to the top right of this page)*
Diffstat (limited to 'scanner.py')
-rw-r--r-- | scanner.py | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -1582,7 +1582,7 @@ class Scanner(object): if PY3: value = bytes(code_bytes).decode('utf-8') else: - value = unicode(''.join(code_bytes), 'utf-8') # type: ignore + value = unicode(b''.join(code_bytes), 'utf-8') # type: ignore except UnicodeDecodeError as exc: raise ScannerError("while scanning a %s" % name, start_mark, str(exc), mark) |