Skip to content

Commit

Permalink
Ensure that _Dict objects can be written as yaml
Browse files Browse the repository at this point in the history
  • Loading branch information
stuarteberg committed Jan 7, 2019
1 parent 76f2031 commit 336f16e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion confiddler/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
from jsonschema.exceptions import _Error, ValidationError
from ruamel.yaml.compat import ordereddict
from ruamel.yaml.comments import CommentedMap, CommentedSeq
from ruamel.yaml import YAML
from ruamel.yaml import YAML, RoundTripRepresenter
yaml = YAML()
yaml.default_flow_style = False

Expand Down Expand Up @@ -468,3 +468,4 @@ def __init__(self, *args, **kwargs):
super().__init__(*args, **kwargs)
self.from_default = False

RoundTripRepresenter.add_representer(_Dict, RoundTripRepresenter.represent_dict)

0 comments on commit 336f16e

Please sign in to comment.