Fix whats_left

This commit is contained in:
Jeong YunWon
2022-08-23 16:14:34 +09:00
parent 6b31ed37a4
commit ac1be9e2a4
2 changed files with 9 additions and 4 deletions

8
Lib/platform.py vendored
View File

@@ -1065,7 +1065,13 @@ def _sys_version(sys_version=None):
repr(sys_version))
version, buildno, builddate, buildtime, compiler = \
match.groups()
name = 'CPython'
# XXX: RUSTPYTHON support
if "rustc" in sys_version:
name = "RustPython"
else:
name = 'CPython'
if builddate is None:
builddate = ''
elif buildtime:

View File

@@ -1,8 +1,7 @@
/* Several function to retrieve version information.
*/
use chrono::prelude::DateTime;
use chrono::Local;
use chrono::{prelude::DateTime, Local};
use std::time::{Duration, UNIX_EPOCH};
// = 3.10.0alpha
@@ -18,7 +17,7 @@ pub const VERSION_HEX: usize =
pub fn get_version() -> String {
format!(
"{:.80} ({:.80}) \n[{:.80}]",
"{:.80} ({:.80}) \n[{:.80}]", // \n is PyPy convention
get_version_number(),
get_build_info(),
get_compiler()