From 366b2c41a2048cf482d20efa90f8b01336cb2816 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tina=20M=C3=BCller?= Date: Sat, 7 Dec 2019 23:02:40 +0100 Subject: [PATCH] Use full_load in yaml-highlight example --- 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')