From 2ad2c819f9fddef87dc57f27b1ba7e3df4e4a838 Mon Sep 17 00:00:00 2001 From: Klaas van Schelven Date: Tue, 11 Nov 2025 15:57:17 +0100 Subject: [PATCH] bandit (trivial ignore) --- bsmain/management/commands/send_bomb.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/bsmain/management/commands/send_bomb.py b/bsmain/management/commands/send_bomb.py index 8caff5d..dc7ec56 100644 --- a/bsmain/management/commands/send_bomb.py +++ b/bsmain/management/commands/send_bomb.py @@ -107,7 +107,8 @@ class Command(BaseCommand): return data_bytes def br_bomb(self, header, size): - filename = "/tmp/br-bomb-%d" % size + # no_bandit_expl utility-script for local consumtion only + filename = "/tmp/br-bomb-%d" % size # nosec B108 if os.path.exists(filename): with open(filename, "rb") as f: data_bytes = f.read() @@ -151,7 +152,7 @@ class Command(BaseCommand): def zlib_bomb(self, header, size, wbits): algo = "gzip" if wbits == WBITS_PARAM_FOR_GZIP else "deflate" - filename = "/tmp/%s-bomb-%d" % (algo, size) + filename = "/tmp/%s-bomb-%d" % (algo, size) # nosec B108 if os.path.exists(filename): with open(filename, "rb") as f: