@@ -86,7 +86,6 @@ def evaluation_step(
8686 time_limit : float | None = None ,
8787 memory_limit : int | None = None ,
8888 dirs_map : dict [str , tuple [str | None , str | None ]] | None = None ,
89- writable_files : list [str ] | None = None ,
9089 stdin_redirect : str | None = None ,
9190 stdout_redirect : str | None = None ,
9291 multiprocess : bool = False ,
@@ -109,11 +108,6 @@ def evaluation_step(
109108 from external directories to a pair of strings: the first is the path
110109 they should be mapped to inside the sandbox, the second, is
111110 isolate's options for the mapping.
112- writable_files: a list of inner file names (relative to
113- the inner path) on which the command is allow to write, or None to
114- indicate that all files are read-only; if applicable, redirected
115- output and the standard error are implicitly added to the files
116- allowed.
117111 stdin_redirect: the name of the file that will be redirected
118112 to the standard input of each command; if None, nothing will be
119113 provided to stdin.
@@ -136,7 +130,7 @@ def evaluation_step(
136130 for command in commands :
137131 success = evaluation_step_before_run (
138132 sandbox , command , time_limit , memory_limit ,
139- dirs_map , writable_files , stdin_redirect , stdout_redirect ,
133+ dirs_map , stdin_redirect , stdout_redirect ,
140134 multiprocess , wait = True )
141135 if not success :
142136 logger .debug ("Job failed in evaluation_step_before_run." )
@@ -155,7 +149,6 @@ def evaluation_step_before_run(
155149 time_limit : float | None = None ,
156150 memory_limit : int | None = None ,
157151 dirs_map : dict [str , tuple [str | None , str | None ]] | None = None ,
158- writable_files : list [str ] | None = None ,
159152 stdin_redirect : str | None = None ,
160153 stdout_redirect : str | None = None ,
161154 multiprocess : bool = False ,
@@ -182,8 +175,6 @@ def evaluation_step_before_run(
182175 # Default parameters handling.
183176 if dirs_map is None :
184177 dirs_map = {}
185- if writable_files is None :
186- writable_files = []
187178 if stdout_redirect is None :
188179 stdout_redirect = "stdout.txt"
189180
@@ -209,9 +200,6 @@ def evaluation_step_before_run(
209200
210201 for src , (dest , options ) in dirs_map .items ():
211202 sandbox .add_mapped_directory (src , dest = dest , options = options )
212- for name in [sandbox .stderr_file , sandbox .stdout_file ]:
213- if name is not None :
214- writable_files .append (name )
215203
216204 sandbox .set_multiprocess (multiprocess )
217205
0 commit comments