Skip to content

Commit

Permalink
remove py2 exec example in docs (#947)
Browse files Browse the repository at this point in the history
* remove py2 exec example

* remove old comment
  • Loading branch information
clavedeluna committed Sep 14, 2022
1 parent a743858 commit 3aaa2b0
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
2 changes: 0 additions & 2 deletions bandit/formatters/xml.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,6 @@
New field `CWE` added to output
"""
# This future import is necessary here due to the xml import below on Python
# 2.7
import logging
import sys
from xml.etree import cElementTree as ET
Expand Down
2 changes: 1 addition & 1 deletion bandit/plugins/exec.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
CWE: CWE-78 (https://cwe.mitre.org/data/definitions/78.html)
Location: ./examples/exec.py:2
1 exec("do evil")
2 exec "do evil"
.. seealso::
Expand Down

0 comments on commit 3aaa2b0

Please sign in to comment.