Skip to content
Snippets Groups Projects
Commit b25ca892 authored by nimrod's avatar nimrod
Browse files

Silence Semgrep warnings.

parent fded1ae5
No related branches found
No related tags found
No related merge requests found
Pipeline #1153 passed
...@@ -18,7 +18,7 @@ import template.filters ...@@ -18,7 +18,7 @@ import template.filters
# I ignore import errors here and fail on them later in the main function so # I ignore import errors here and fail on them later in the main function so
# the module can be imported by the setup.py with jinja missing so the # the module can be imported by the setup.py with jinja missing so the
# docstring can be used as the package description. # docstring can be used as the package description.
try: try: # nosemgrep: rules.bandit.B110
from jinja2 import Environment from jinja2 import Environment
except ImportError: except ImportError:
pass pass
......
...@@ -162,7 +162,7 @@ def run(*argv, **kwargs): ...@@ -162,7 +162,7 @@ def run(*argv, **kwargs):
if sys.version_info[0] < 3: # nosec if sys.version_info[0] < 3: # nosec
import subprocess32 as subprocess import subprocess32 as subprocess
else: else:
import subprocess import subprocess # nosemgrep: rules.bandit.B40
defaults = {"stdout": subprocess.PIPE, "stderr": subprocess.PIPE} defaults = {"stdout": subprocess.PIPE, "stderr": subprocess.PIPE}
defaults.update(kwargs) defaults.update(kwargs)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment