Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added tomllib (vendored) as a replacement for toml fix #708
toml kept as a fallback until 4.0.0 to nor break compatibility - toml follows 0.5.0 spec - tomlib follows 1.0.0 spec - toml allows emojis and unicode chars unencoded - tomllib foolows the spec where only encoded chars are allowed
- Loading branch information
1 parent
61e70dc
commit 90562be
Showing
16 changed files
with
1,197 additions
and
70 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
This lib will be deprecated on 4.0.0 | ||
toml_loader and all the other places | ||
will default to tomllib. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
# SPDX-License-Identifier: MIT | ||
# SPDX-FileCopyrightText: 2021 Taneli Hukkinen | ||
|
||
__all__ = ( | ||
"loads", | ||
"load", | ||
"TOMLDecodeError", | ||
"dump", | ||
"dumps", | ||
) | ||
|
||
from ._parser import TOMLDecodeError, load, loads | ||
from ._writer import dump, dumps | ||
|
||
# Pretend this exception was created here. | ||
TOMLDecodeError.__module__ = __name__ |
Oops, something went wrong.