Skip to content

Commit de31b87

Browse files
authored
Merge pull request #770 from smackers/yaml-load
update file reading to yaml.safe_load
2 parents 7f927dc + 8f1fd08 commit de31b87

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

share/smack/top.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1078,7 +1078,7 @@ def thread_verify_bpl(args, args_to_add):
10781078

10791079
def verify_bpl_portfolio(args):
10801080

1081-
portfolio_config = yaml.load(open(args.portfolio_config, 'r'))
1081+
portfolio_config = yaml.safe_load(open(args.portfolio_config, 'r'))
10821082
p = multiprocessing.Pool()
10831083
results = {} # map of process -> thread name
10841084

0 commit comments

Comments
 (0)