diff options
author | 2025-10-09 17:55:22 +0100 | |
---|---|---|
committer | 2025-10-09 17:55:22 +0100 | |
commit | 784630351f06f635bfef44400a129435e8592c2b (patch) | |
tree | 2c6836724afc890c9ab348ad731e0c4b13b989ce | |
parent | Stop using Literal ordering to determine default !eval Python version (diff) |
Use last character of Python version to determine free threading
Removes the need to hardcode each specific "3.Xt" version we may support in future.
Co-authored-by: ChrisJL <[email protected]>
-rw-r--r-- | bot/exts/utils/snekbox/_eval.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/bot/exts/utils/snekbox/_eval.py b/bot/exts/utils/snekbox/_eval.py index 6240d0cc6..1c107caac 100644 --- a/bot/exts/utils/snekbox/_eval.py +++ b/bot/exts/utils/snekbox/_eval.py @@ -141,7 +141,7 @@ class EvalResult: def get_status_message(self, job: EvalJob) -> str: """Return a user-friendly message corresponding to the process's return code.""" - if job.version == "3.13t": + if job.version[-1] == "t": version_text = job.version.replace("t", " [free threaded](<https://docs.python.org/3.13/whatsnew/3.13.html#free-threaded-cpython>)") else: version_text = job.version |