Commit 287314c
committed
style(contrib/aws): Ensure that files are closed and use yaml.safe_load
The `with` statement ensures that files will be always be closed, this also switches from the deprecated `file` to `open`.
Also use `yaml.safe_load` in favor of `yaml.load`, which can execute arbitrary code.1 parent 101bbba commit 287314c
1 file changed
Lines changed: 2 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
95 | 95 | | |
96 | 96 | | |
97 | 97 | | |
98 | | - | |
| 98 | + | |
| 99 | + | |
99 | 100 | | |
100 | 101 | | |
101 | 102 | | |
| |||
0 commit comments