From 3a146c286344474bd5d6958b3c2eab10341ff399 Mon Sep 17 00:00:00 2001 From: sco1 Date: Wed, 24 Apr 2019 17:25:47 -0400 Subject: Relint Snekbox with new linting rules --- snekbox.py | 3 --- 1 file changed, 3 deletions(-) (limited to 'snekbox.py') diff --git a/snekbox.py b/snekbox.py index f8d7c31..7491672 100644 --- a/snekbox.py +++ b/snekbox.py @@ -45,7 +45,6 @@ class Snekbox: Returns the output of executing the command (stdout) if successful, or a error message if the execution failed. """ - args = [self.nsjail_binary, '-Mo', '--rlimit_as', '700', '--chroot', '/', @@ -108,7 +107,6 @@ class Snekbox: to RMQ. Once published, the system exits, since the snekboxes are created and disposed of per-execution. """ - msg = body.decode('utf-8') result = '' snek_msg = json.loads(msg) @@ -125,7 +123,6 @@ class Snekbox: def message_handler(self, ch, method, properties, body, thread_ws=None): """Spawns a daemon process that handles RMQ messages.""" - p = multiprocessing.Process(target=self.execute, args=(body,)) p.daemon = True p.start() -- cgit v1.2.3