Skip to content

Commit

Permalink
Use full_load in yaml-highlight example (#359)
Browse files Browse the repository at this point in the history
  • Loading branch information
perlpunk authored Dec 8, 2019
1 parent bfabdf4 commit c373d41
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion examples/yaml-highlight/yaml_hl.py
Original file line number Diff line number Diff line change
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 c373d41

Please sign in to comment.