Use full_load in yaml-highlight example (#359)

This commit is contained in:
Tina Müller (tinita) 2019-12-08 18:43:47 +01:00 committed by Tina Müller
parent a826f546c2
commit d137e82ad1
1 changed files with 1 additions and 1 deletions

View File

@ -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')