Skip to content

Commit

Permalink
Merge pull request #121 from jelu/yaml
Browse files Browse the repository at this point in the history
YAML load
  • Loading branch information
jelu authored Aug 22, 2024
2 parents 4057f9f + 377861f commit 5a87d86
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions dsc_datatool/transformer/labler.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,10 +44,7 @@ def __init__(self, opts):
if not 'yaml' in opts:
raise Exception('yaml=file option required')
f = open(opts.get('yaml'), 'r', encoding=encoding)
try:
self.label = yaml.full_load(f)
except AttributeError:
self.label = yaml.load(f)
self.label = yaml.safe_load(f)
f.close()


Expand Down

0 comments on commit 5a87d86

Please sign in to comment.