"Use of unsafe yaml load" error on ruamel.yaml
Bug #1768584 reported by
Gaetan Semet
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Bandit |
New
|
Undecided
|
Unassigned |
Bug Description
This code causes a B506 error while a safe loader is used:
```
from ruamel.yaml import YAML
yaml = YAML(typ='safe')
c = yaml.load(content)
```
Expected result: ok
To post a comment you must log in.
Please reopen issue at the new home of Bandit on GitHub https:/ /github. com/PyCQA/ bandit