Skip to content

Commit

Permalink
Use full_load in yaml-highlight example
Browse files Browse the repository at this point in the history
  • Loading branch information
perlpunk committed Dec 8, 2019
1 parent 474dfc4 commit de6caf5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion examples/yaml-highlight/yaml_hl.py
Expand Up @@ -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')
Expand Down

0 comments on commit de6caf5

Please sign in to comment.