Skip to content

Commit 3aaa2b0

Browse files
authored
remove py2 exec example in docs (#947)
* remove py2 exec example * remove old comment
1 parent a743858 commit 3aaa2b0

File tree

2 files changed

+1
-3
lines changed

2 files changed

+1
-3
lines changed

bandit/formatters/xml.py

-2
Original file line numberDiff line numberDiff line change
@@ -33,8 +33,6 @@
3333
New field `CWE` added to output
3434
3535
"""
36-
# This future import is necessary here due to the xml import below on Python
37-
# 2.7
3836
import logging
3937
import sys
4038
from xml.etree import cElementTree as ET

bandit/plugins/exec.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
CWE: CWE-78 (https://cwe.mitre.org/data/definitions/78.html)
2020
Location: ./examples/exec.py:2
2121
1 exec("do evil")
22-
2 exec "do evil"
22+
2323
2424
.. seealso::
2525

0 commit comments

Comments
 (0)