https://github.com/yaml/pyyaml/pull/848 opened to improve that
yaml/pyyaml#848 opened to improve that