Skip to content

Commit

Permalink
foliaspec: yaml loader is mandatory now
Browse files Browse the repository at this point in the history
  • Loading branch information
proycon committed Nov 18, 2022
1 parent 4e50d4a commit 5c1dcd9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion foliatools/foliaspec.py
Original file line number Diff line number Diff line change
Expand Up @@ -1045,7 +1045,7 @@ def main():
sys.exit(0)

#Load specification
spec = yaml.load(open(args.specification,'r'))
spec = yaml.load(open(args.specification,'r'), yaml.FullLoader)

elements = getelements(spec) #gathers all class names
elements.sort(key=lambda x: x['class'])
Expand Down

0 comments on commit 5c1dcd9

Please sign in to comment.