mirror of
https://gitee.com/openharmony/third_party_pyyaml
synced 2024-11-23 07:20:31 +00:00
Use full_load in yaml-highlight example (#359)
This commit is contained in:
parent
a826f546c2
commit
d137e82ad1
@ -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…
Reference in New Issue
Block a user