From 8bc8bf33b78e43673a84f71fad2e3c48dd018ef3 Mon Sep 17 00:00:00 2001 From: Tudor Brindus Date: Sun, 2 Jun 2024 23:11:13 -0400 Subject: [PATCH] executors/python: `pytb` is aliased to `py3tb`; use `py2tb` explicitly --- dmoj/executors/PY2.py | 2 +- dmoj/executors/PYPY.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/dmoj/executors/PY2.py b/dmoj/executors/PY2.py index 0ce235d98..d19d78cf3 100644 --- a/dmoj/executors/PY2.py +++ b/dmoj/executors/PY2.py @@ -4,7 +4,7 @@ class Executor(PythonExecutor): command = 'python' command_paths = ['python2.7', 'python2', 'python'] - pygments_traceback_lexer = 'pytb' + pygments_traceback_lexer = 'py2tb' test_program = """ import sys if sys.version_info.major == 2: diff --git a/dmoj/executors/PYPY.py b/dmoj/executors/PYPY.py index fbbd6f9f3..e93c6e687 100644 --- a/dmoj/executors/PYPY.py +++ b/dmoj/executors/PYPY.py @@ -6,7 +6,7 @@ class Executor(PythonExecutor): command = 'pypy' - pygments_traceback_lexer = 'pytb' + pygments_traceback_lexer = 'py2tb' test_program = """ import sys if sys.version_info.major == 2: