diff options
| author | 2022-11-23 00:23:40 -0500 | |
|---|---|---|
| committer | 2022-11-23 00:23:40 -0500 | |
| commit | f12f8f3915620cf5f20ef5c36e488517a4e73e4b (patch) | |
| tree | 4198cc477f2380371866c0935bb27a16391a33c6 | |
| parent | Add memfs unit tests (diff) | |
Update python3 docstring
| -rw-r--r-- | snekbox/nsjail.py | 13 | 
1 files changed, 4 insertions, 9 deletions
| diff --git a/snekbox/nsjail.py b/snekbox/nsjail.py index 30198e5..d49a128 100644 --- a/snekbox/nsjail.py +++ b/snekbox/nsjail.py @@ -160,15 +160,10 @@ class NsJail:          """          Execute Python 3 code in an isolated environment and return the completed process. -        The `nsjail_args` passed will be used to override the values in the NsJail config. -        These arguments are only options for NsJail; they do not affect Python's arguments. - -        `py_args` are arguments to pass to the Python subprocess before the code, -        which is the last argument. - -        If `use_file` is True, `code` will be written to a file the last argument will be -        the file name `main.py`. If False, `code` will be passed as the last argument. -        The default of None will use a file unless `c` is in `py_args`. +        Args: +            py_args: Arguments passed to python3. +            files: FileAttachments to be written to the sandbox prior to run. +            nsjail_args: Overrides options in the NsJail config, added to NsJail call.          """          if self.cgroup_version == 2:              nsjail_args = ("--use_cgroupv2", *nsjail_args) | 
