From c373d41cfdbbc7bf12cbf2cf6051a572a94a6879 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tina=20M=C3=BCller=20=28tinita=29?= Date: Sun, 8 Dec 2019 18:43:47 +0100 Subject: [PATCH] Use full_load in yaml-highlight example (#359) --- examples/yaml-highlight/yaml_hl.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/yaml-highlight/yaml_hl.py b/examples/yaml-highlight/yaml_hl.py index d6f7bf4e..96e0ae7b 100755 --- a/examples/yaml-highlight/yaml_hl.py +++ b/examples/yaml-highlight/yaml_hl.py @@ -37,7 +37,7 @@ def __setstate__(self, state): 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')