mirror of
https://github.com/RustPython/RustPython.git
synced 2026-06-02 19:39:49 +09:00
Fix whats_left
This commit is contained in:
8
Lib/platform.py
vendored
8
Lib/platform.py
vendored
@@ -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:
|
||||
|
||||
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user