annotate mercurial/thirdparty/tomli/__init__.py @ 50800:2c34c9b61a4f
thirdparty: vendor tomli
The next commit will introduce a .toml file to abstract configitems
away from Python. Python 3.11 has a toml read-only library (`tomllib`), which
gives us a way out of vendoring eventually.
For now, we vendor the backport, specifically version 1.2.3 which is still
compatible with Python 3.6.
author |
Rapha?l Gom?s <rgomes@octobus.net> |
date |
Mon, 23 Jan 2023 17:11:42 +0100 |
parents |
|
children |
|
rev |
line source |
50800
|
1 """A lil' TOML parser."""
|
|
2
|
|
3 __all__ = ("loads", "load", "TOMLDecodeError")
|
|
4 __version__ = "1.2.3" # DO NOT EDIT THIS LINE MANUALLY. LET bump2version UTILITY DO IT
|
|
5
|
|
6 from ._parser import TOMLDecodeError, load, loads
|
|
7
|
|
8 # Pretend this exception was created here.
|
|
9 TOMLDecodeError.__module__ = "tomli"
|