diff options
| author | Tina Müller <cpan2@tinita.de> | 2019-12-07 23:02:40 +0100 |
|---|---|---|
| committer | Tina Müller <cpan2@tinita.de> | 2019-12-08 18:02:33 +0100 |
| commit | 366b2c41a2048cf482d20efa90f8b01336cb2816 (patch) | |
| tree | 88928c28b464cc0015fc66c3ae33e41bb4a05509 | |
| parent | bfabdf4029995c599d62518389611810be2dc8cf (diff) | |
| download | pyyaml-git-perlpunk/example-full-load.tar.gz | |
Use full_load in yaml-highlight exampleperlpunk/example-full-load
| -rwxr-xr-x | examples/yaml-highlight/yaml_hl.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/yaml-highlight/yaml_hl.py b/examples/yaml-highlight/yaml_hl.py index d6f7bf4..96e0ae7 100755 --- a/examples/yaml-highlight/yaml_hl.py +++ b/examples/yaml-highlight/yaml_hl.py @@ -37,7 +37,7 @@ yaml.add_path_resolver(u'tag:yaml.org,2002:pairs', class YAMLHighlight: def __init__(self, options): - config = yaml.load(file(options.config, 'rb').read()) + config = yaml.full_load(file(options.config, 'rb').read()) self.style = config[options.style] if options.input: self.input = file(options.input, 'rb') |
