core: langs: mark python2 as disabled

This commit is contained in:
undefined committed 2023-04-04 21:15:15 +08:00
1 parent 39919a3214
commit 206e2f3806
1 file changed
+8 -4
+8 -4
View File
@@ -32,14 +32,16 @@ langs:
- ~ Compiling be be ignored if compile option wasn't set - ~ Compiling be be ignored if compile option wasn't set
- ~ Key marked with a ? means the option is optional - ~ Key marked with a ? means the option is optional
- (name): - (name):
disabled?: whether to disable this language
compile?: Compile Command compile?: Compile Command
code_file?: Where to write code file when compiling code_file?: Where to write code file when compiling, defaults to `foo.[name]`
execute?: Command to execute the program execute: Command to execute the program
highlight?: PrismJS highlight mode highlight?: PrismJS highlight mode
monaco?: Monaco editor mode monaco?: Monaco editor mode
time_limit_rate: Time limit rate time_limit_rate?: Time limit rate
target: Compiler output file target?: Compiler output file, defaults to `foo`
display: Display name display: Display name
compile_time_limit?: Compile time limit, in milliseconds
bash: bash:
display: Bash display: Bash
code_file: foo.sh code_file: foo.sh
@@ -92,6 +94,7 @@ langs:
highlight: java astyle-java highlight: java astyle-java
monaco: java monaco: java
display: Java display: Java
compile_time_limit: 30000
kt: kt:
compile: echo "Invalid language selection" compile: echo "Invalid language selection"
code_file: foo.kt code_file: foo.kt
@@ -114,6 +117,7 @@ langs:
display: Python display: Python
py.py2: py.py2:
display: Python 2 display: Python 2
disabled: true
py.py3: py.py3:
compile: /usr/bin/python3 -c "import py_compile; py_compile.compile('/w/foo.py', '/w/foo', doraise=True)" compile: /usr/bin/python3 -c "import py_compile; py_compile.compile('/w/foo.py', '/w/foo', doraise=True)"
execute: /usr/bin/python3 foo execute: /usr/bin/python3 foo