mirror of
https://github.com/yaml/pyyaml.git
synced 2025-10-19 11:03:18 +00:00
Use full_load in yaml-highlight example (#359)
This commit is contained in:
parent
a826f546c2
commit
d137e82ad1
1 changed files with 1 additions and 1 deletions
|
@ -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')
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue