bandit hangs if current directory contains __init__.py
Bug #1743042 reported by
Calvin Li
This bug affects 2 people
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Bandit |
Fix Released
|
Undecided
|
Tin Lam |
Bug Description
Hi!
The function bandit.
Example:
```
.:
__init__.py test/
./test:
__init__.py test.py
```
Calling bandit with `bandit test/test.py` leads to an infinite loop. `bandit ./test/test.py` gives the expected result (with detected qualname `test.test`).
The following diff to get_module_
```
- while head not in ['/', '.']:
+ while head not in ['/', '.', '']:
```
Thanks
Changed in bandit: | |
assignee: | nobody → Jeremy Liu (liujiong) |
Changed in bandit: | |
assignee: | Jeremy Liu (liujiong) → nobody |
Changed in bandit: | |
assignee: | nobody → Tin Lam (lamt) |
To post a comment you must log in.
Fix proposed to branch: master /review. openstack. org/537242
Review: https:/