aboutsummaryrefslogtreecommitdiffstats
path: root/bot/cogs/math.py
diff options
context:
space:
mode:
authorGravatar Gareth Coles <[email protected]>2018-03-29 09:30:42 +0100
committerGravatar Gareth Coles <[email protected]>2018-03-29 09:30:42 +0100
commit6e2bd0b8bab870fd089233db39f8304c0ebf6dbe (patch)
treebe425227bc9cdc042e062e57851a74341cb48fd0 /bot/cogs/math.py
parentBump flake8-bandit from 1.0.1 to 1.0.2 (#39) (diff)
Try to make flake8-bandit happy
Diffstat (limited to 'bot/cogs/math.py')
-rw-r--r--bot/cogs/math.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/bot/cogs/math.py b/bot/cogs/math.py
index 5fd8433c5..911ce587c 100644
--- a/bot/cogs/math.py
+++ b/bot/cogs/math.py
@@ -6,7 +6,7 @@ import sys
from contextlib import suppress
from io import BytesIO
from re import search
-from subprocess import PIPE, Popen, STDOUT, TimeoutExpired # noqa: B404
+from subprocess import PIPE, Popen, STDOUT, TimeoutExpired # noqa: B404 S404
from discord import File
from discord.ext.commands import command
@@ -24,7 +24,7 @@ async def run_sympy(sympy_code: str, calc: bool = False, timeout: int = 10) -> s
# They're trying to exploit something, raise an error
raise TypeError("'__' not allowed in sympy code")
- proc = Popen([ # noqa: B603
+ proc = Popen([ # noqa: B603 S603
sys.executable, "-c",
"import sys,sympy;from sympy.parsing.sympy_parser import parse_expr;"
f"print(sympy.latex({code_}))", sympy_code