Modify ↓
Ticket #242 (new defect)
ScannerError ("could not found expected ':'") on reading map keys longer than 1024 characters
| Reported by: | ed.brannin@… | Owned by: | xi |
|---|---|---|---|
| Priority: | normal | Component: | pyyaml |
| Severity: | normal | Keywords: | |
| Cc: |
Description
I just got this error when reading a YAML map with a very long key:
"could not found expected ':'", self.get_mark()) yaml.scanner.ScannerError: while scanning a simple key
If I delete the end of the key until it's 1024 characters long, it works.
(In this case, the keys in my map are SSH public keys for a Puppet manifest whose data I'm trying to export into YAML for easier editing.)
Attachments
Change History
Changed 12 months ago by ed.brannin@…
-
attachment
pyyaml_242.yaml
added
Changed 12 months ago by ed.brannin@…
-
attachment
pyyaml_242.py
added
PyYAML Test program that displays the issue
Note: See
TracTickets for help on using
tickets.

Example YAML input that causes the issue