aboutsummaryrefslogtreecommitdiffstats
path: root/snekbox.py
diff options
context:
space:
mode:
authorGravatar sco1 <[email protected]>2019-04-24 17:25:47 -0400
committerGravatar sco1 <[email protected]>2019-04-24 17:26:07 -0400
commit3a146c286344474bd5d6958b3c2eab10341ff399 (patch)
tree660cf7a426de5f71f4dd49a12135feb86c5dbf22 /snekbox.py
parentRemove docstring newline linting from ignored codes (diff)
Relint Snekbox with new linting rules
Diffstat (limited to 'snekbox.py')
-rw-r--r--snekbox.py3
1 files changed, 0 insertions, 3 deletions
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()