File tree Expand file tree Collapse file tree 2 files changed +6
-3
lines changed Expand file tree Collapse file tree 2 files changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -188,9 +188,12 @@ def _parse_qs(data):
188188
189189
190190def _load_toml ():
191- import toml
191+ if sys .version_info < (3 , 11 ):
192+ import tomli as tomllib
193+ else :
194+ import tomllib
192195
193- return toml .loads , Exception , MalformedToml
196+ return tomllib .loads , Exception , MalformedToml
194197
195198
196199def _load_xml ():
Original file line number Diff line number Diff line change 3030 install_requires = install_requires ,
3131 extras_require = {
3232 "yaml" : install_requires + ["pyyaml" ],
33- "toml" : install_requires + ["toml " ],
33+ "toml" : install_requires + ["tomli;python_version<'3.11' " ],
3434 "xml" : install_requires + ["xmltodict" ],
3535 "tests" : install_requires + tests_requires ,
3636 "hjson" : install_requires + ["hjson" ],
You can’t perform that action at this time.
0 commit comments