aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Joe Banks <[email protected]>2025-10-09 17:55:22 +0100
committerGravatar GitHub <[email protected]>2025-10-09 17:55:22 +0100
commit784630351f06f635bfef44400a129435e8592c2b (patch)
tree2c6836724afc890c9ab348ad731e0c4b13b989ce
parentStop 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.py2
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