Use SafeLoader in karabiner compile script

This commit is contained in:
Adam Goldsmith 2020-03-05 15:31:34 -05:00
parent 324fbeec8f
commit 5f2b3ea54b

View File

@ -6,4 +6,4 @@ import json
with open('karabiner.yaml') as in_f:
with open('karabiner.json', 'w') as out_f:
json.dump(yaml.load(in_f), out_f, indent=4)
json.dump(yaml.load(in_f, Loader=yaml.SafeLoader), out_f, indent=4)