diff options
author | Anthon van der Neut <anthon@mnt.org> | 2021-04-07 21:13:57 +0200 |
---|---|---|
committer | Anthon van der Neut <anthon@mnt.org> | 2021-04-07 21:13:57 +0200 |
commit | 208bdbb7b1d7488c197bce88578a128ac1cd743d (patch) | |
tree | 881c73ab9e563a3537dfeb7deec7105cea26c39b /main.py | |
parent | 8993ebf6eece99d1bae8690d9fb2bb816196d4a6 (diff) | |
download | ruamel.yaml-208bdbb7b1d7488c197bce88578a128ac1cd743d.tar.gz |
fix for issue 382, error in format string0.17.3
Diffstat (limited to 'main.py')
-rw-r--r-- | main.py | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -150,6 +150,7 @@ class YAML(object): self.scalar_after_indicator = None # [a, b: 1, c: {d: 2}] vs. [a, {b: 1}, {c: {d: 2}}] self.brace_single_entry_mapping_in_flow_sequence = False + self.comment_handling = None for module in self.plug_ins: if getattr(module, 'typ', None) in self.typ: typ_found += 1 @@ -1614,7 +1615,7 @@ class YAMLObjectMetaclass(type): def __init__(cls, name, bases, kwds): # type: (Any, Any, Any) -> None - super(YAMLObjectMetaclass, cls).__init__(name, bases, kwds) + super().__init__(name, bases, kwds) if 'yaml_tag' in kwds and kwds['yaml_tag'] is not None: cls.yaml_constructor.add_constructor(cls.yaml_tag, cls.from_yaml) # type: ignore cls.yaml_representer.add_representer(cls, cls.to_yaml) # type: ignore |