mirror of
https://github.com/RustPython/RustPython.git
synced 2026-10-28 18:59:04 +08:00
Fix whats_left
This commit is contained in:
1 parent
6b31ed37a4
commit
ac1be9e2a4
2 files changed
+9
-4
No files matched your search
Vendored
+7
-1
@@ -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:
|
||||
|
||||
+2
-3
@@ -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