Commit b25ca892 authored by nimrod's avatar nimrod
Browse files

Silence Semgrep warnings.

parent fded1ae5
Loading
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -18,7 +18,7 @@ import template.filters
# 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
# docstring can be used as the package description.
try:
try:  # nosemgrep: rules.bandit.B110
    from jinja2 import Environment
except ImportError:
    pass
+1 −1
Original line number Diff line number Diff line
@@ -162,7 +162,7 @@ def run(*argv, **kwargs):
    if sys.version_info[0] < 3:  # nosec
        import subprocess32 as subprocess
    else:
        import subprocess
        import subprocess  # nosemgrep: rules.bandit.B40

    defaults = {"stdout": subprocess.PIPE, "stderr": subprocess.PIPE}
    defaults.update(kwargs)