mirror of
https://github.com/erg-lang/erg.git
synced 2025-07-24 13:34:52 +00:00
feat: add tomllib
module
This commit is contained in:
parent
55f24ae5a6
commit
0fea05a9b4
2 changed files with 8 additions and 3 deletions
|
@ -14,7 +14,7 @@ use crate::random::random;
|
|||
use crate::serialize::get_magic_num_from_bytes;
|
||||
|
||||
#[cfg(unix)]
|
||||
pub const BUILTIN_PYTHON_MODS: [&str; 176] = [
|
||||
pub const BUILTIN_PYTHON_MODS: [&str; 177] = [
|
||||
"abc",
|
||||
"argparse",
|
||||
"array",
|
||||
|
@ -166,6 +166,7 @@ pub const BUILTIN_PYTHON_MODS: [&str; 176] = [
|
|||
"tkinter",
|
||||
"token",
|
||||
"tokenize",
|
||||
"tomllib",
|
||||
"trace",
|
||||
"traceback",
|
||||
"tracemalloc",
|
||||
|
@ -193,7 +194,7 @@ pub const BUILTIN_PYTHON_MODS: [&str; 176] = [
|
|||
"zoneinfo",
|
||||
];
|
||||
#[cfg(windows)]
|
||||
pub const BUILTIN_PYTHON_MODS: [&str; 171] = [
|
||||
pub const BUILTIN_PYTHON_MODS: [&str; 172] = [
|
||||
"abc",
|
||||
"argparse",
|
||||
"array",
|
||||
|
@ -339,6 +340,7 @@ pub const BUILTIN_PYTHON_MODS: [&str; 171] = [
|
|||
"tkinter",
|
||||
"token",
|
||||
"tokenize",
|
||||
"tomllib",
|
||||
"trace",
|
||||
"traceback",
|
||||
"tracemalloc",
|
||||
|
@ -367,7 +369,7 @@ pub const BUILTIN_PYTHON_MODS: [&str; 171] = [
|
|||
"zoneinfo",
|
||||
];
|
||||
#[cfg(not(any(windows, unix)))]
|
||||
pub const BUILTIN_PYTHON_MODS: [&str; 165] = [
|
||||
pub const BUILTIN_PYTHON_MODS: [&str; 166] = [
|
||||
"abc",
|
||||
"argparse",
|
||||
"array",
|
||||
|
@ -509,6 +511,7 @@ pub const BUILTIN_PYTHON_MODS: [&str; 165] = [
|
|||
"tkinter",
|
||||
"token",
|
||||
"tokenize",
|
||||
"tomllib",
|
||||
"trace",
|
||||
"traceback",
|
||||
"tracemalloc",
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue