Skip to content

Commit 7846303

Browse files
jb3ChrisLovering
andauthored
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 <ChrisLovering@users.noreply.github.com>
1 parent 92a0fb8 commit 7846303

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

bot/exts/utils/snekbox/_eval.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,7 @@ def get_failed_files_str(self, char_max: int = 85) -> str:
141141

142142
def get_status_message(self, job: EvalJob) -> str:
143143
"""Return a user-friendly message corresponding to the process's return code."""
144-
if job.version == "3.13t":
144+
if job.version[-1] == "t":
145145
version_text = job.version.replace("t", " [free threaded](<https://docs.python.org/3.13/whatsnew/3.13.html#free-threaded-cpython>)")
146146
else:
147147
version_text = job.version

0 commit comments

Comments
 (0)