diff options
author | 2019-04-29 21:12:58 -0600 | |
---|---|---|
committer | 2019-04-29 21:12:58 -0600 | |
commit | 40d4972a3420a1f772a9d0464a4369575c11cb5f (patch) | |
tree | d30421204a84a104da5411981e5b49c63ede5f18 /snekbox.py | |
parent | Merge pull request #19 from python-discord/urllib3-vuln-fix (diff) | |
parent | Remove space between ignored flake8 rules (diff) |
Merge pull request #21 from python-discord/docstring-lint-change
Docstring lint change
Diffstat (limited to 'snekbox.py')
-rw-r--r-- | snekbox.py | 3 |
1 files changed, 0 insertions, 3 deletions
@@ -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() |