Skip to content

Commit c2830f4

Browse files
terryluan12youknowone
authored andcommitted
Re-added Rustpython platform version
1 parent 3a95635 commit c2830f4

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

Lib/platform.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1204,7 +1204,12 @@ def _sys_version(sys_version=None):
12041204
repr(sys_version))
12051205
version, buildno, builddate, buildtime, compiler = \
12061206
match.groups()
1207-
name = 'CPython'
1207+
1208+
# XXX: RUSTPYTHON support
1209+
if "RustPython" in sys_version:
1210+
name = "RustPython"
1211+
else:
1212+
name = 'CPython'
12081213
if builddate is None:
12091214
builddate = ''
12101215
elif buildtime:

0 commit comments

Comments
 (0)