Skip to content

Commit ac1be9e

Browse files
committed
Fix whats_left
1 parent 6b31ed3 commit ac1be9e

File tree

2 files changed

+9
-4
lines changed

2 files changed

+9
-4
lines changed

Lib/platform.py

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1065,7 +1065,13 @@ def _sys_version(sys_version=None):
10651065
repr(sys_version))
10661066
version, buildno, builddate, buildtime, compiler = \
10671067
match.groups()
1068-
name = 'CPython'
1068+
1069+
# XXX: RUSTPYTHON support
1070+
if "rustc" in sys_version:
1071+
name = "RustPython"
1072+
else:
1073+
name = 'CPython'
1074+
10691075
if builddate is None:
10701076
builddate = ''
10711077
elif buildtime:

vm/src/version.rs

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
11
/* Several function to retrieve version information.
22
*/
33

4-
use chrono::prelude::DateTime;
5-
use chrono::Local;
4+
use chrono::{prelude::DateTime, Local};
65
use std::time::{Duration, UNIX_EPOCH};
76

87
// = 3.10.0alpha
@@ -18,7 +17,7 @@ pub const VERSION_HEX: usize =
1817

1918
pub fn get_version() -> String {
2019
format!(
21-
"{:.80} ({:.80}) \n[{:.80}]",
20+
"{:.80} ({:.80}) \n[{:.80}]", // \n is PyPy convention
2221
get_version_number(),
2322
get_build_info(),
2423
get_compiler()

0 commit comments

Comments
 (0)