Skip to content

Commit

Permalink
Clearer message for subprocess module use (#667)
Browse files Browse the repository at this point in the history
This change modifies the warning using subprocess module. The
module is subprocess, and anything else is a submodule or function.

Fixes #666

Signed-off-by: Eric Brown <browne@vmware.com>
  • Loading branch information
ericwb committed Dec 17, 2020
1 parent 2690c5b commit b59beba
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions bandit/blacklists/imports.py
Original file line number Diff line number Diff line change
Expand Up @@ -254,8 +254,8 @@ def gen_blacklist():

sets.append(utils.build_conf_dict(
'import_subprocess', 'B404', ['subprocess'],
'Consider possible security implications associated with '
'{name} module.', 'LOW'
'Consider possible security implications associated with the '
'subprocess module.', 'LOW'
))

# Most of this is based off of Christian Heimes' work on defusedxml:
Expand Down

0 comments on commit b59beba

Please sign in to comment.