Spaces:
Sleeping
Sleeping
Debugging
Browse files
restrictedpython_code_eval.py
CHANGED
|
@@ -402,7 +402,7 @@ def _check_correctness(check_program, timeout, task_id, completion_id,
|
|
| 402 |
return out_dict
|
| 403 |
|
| 404 |
|
| 405 |
-
ALLOWED_SYS_NAMES = ['maxsize']
|
| 406 |
|
| 407 |
|
| 408 |
class AllowListImporter:
|
|
@@ -474,6 +474,8 @@ def _unsafe_execute(check_program, result, timeout,
|
|
| 474 |
# Disable functionalities that can make destructive changes to the test.
|
| 475 |
reliability_guard()
|
| 476 |
|
|
|
|
|
|
|
| 477 |
# Run program.
|
| 478 |
try:
|
| 479 |
builtins = {}
|
|
|
|
| 402 |
return out_dict
|
| 403 |
|
| 404 |
|
| 405 |
+
# ALLOWED_SYS_NAMES = ['maxsize']
|
| 406 |
|
| 407 |
|
| 408 |
class AllowListImporter:
|
|
|
|
| 474 |
# Disable functionalities that can make destructive changes to the test.
|
| 475 |
reliability_guard()
|
| 476 |
|
| 477 |
+
print(allowed_imports, allow_str_format, allow_underscore_variable_names)
|
| 478 |
+
|
| 479 |
# Run program.
|
| 480 |
try:
|
| 481 |
builtins = {}
|