Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 9f68bc8

Browse files
committed
Replace setup with a safer version of load as well.
1 parent e16f0ce commit 9f68bc8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ def install_regexes():
2020
import json
2121
import yaml
2222
json_dest = yaml_dest.replace('.yaml', '.json')
23-
regexes = yaml.load(open(yaml_dest))
23+
regexes = yaml.safe_load(open(yaml_dest))
2424
with open(json_dest, "w") as f:
2525
json.dump(regexes, f)
2626

0 commit comments

Comments
 (0)