You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This fails with a TypeError in Python 3 (not in Python 2).
[...]
File "/Users/nrosenstein/Projects/.venv/lib/python3.7/site-packages/yaml/emitter.py", line 228, in expect_document_root
self.expect_node(root=True)
File "/Users/nrosenstein/Projects/.venv/lib/python3.7/site-packages/yaml/emitter.py", line 242, in expect_node
self.process_tag()
File "/Users/nrosenstein/Projects/.venv/lib/python3.7/site-packages/yaml/emitter.py", line 489, in process_tag
self.prepared_tag = self.prepare_tag(tag)
File "/Users/nrosenstein/Projects/.venv/lib/python3.7/site-packages/yaml/emitter.py", line 607, in prepare_tag
for ch in data:
TypeError: ord() expected string of length 1, but int found
This fails with a TypeError in Python 3 (not in Python 2).
For reference:
pyyaml/lib3/yaml/emitter.py
Lines 569 to 575 in a2d481b
On a side note, I don't know how the line numbers don't match. I have PyYAML 3.13 installed and this references the commit on the 3.13 tag.
str.encode()
returns abytes
object in Python 3, which in turn yields integers and no substrings when iterated over, leadingord()
to fail.The text was updated successfully, but these errors were encountered: