First, a disclaimer: I'm not too familiar with YAML. I'm trying to parse a YAML doc into Key Value Pairs (don't worry about how I'm doing it. I've got that bit handled)
My file used to look something like:
world:
people:
name:Suzy
address:chez-bob
Then, someone went and changed it.
world:
people:
name:!$uzy
address:chez-bob
And I get this parse error:
yaml.constructor.ConstructorError: could not determine a constructor for the tag '!$uzy'
What does this even mean? How would I go about getting it to just interpret !$ as just two characters?
I just want a dictionary of string keys and values!
Also, editing the yaml files is not an option. Problem must be fixed in the code using the parser.
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…