Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Aug 22, 2022
1 parent 6b36263 commit 2f80999
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion setup.cfg
Expand Up @@ -42,8 +42,8 @@ install_requires =
virtualenv!=20.0.0,!=20.0.1,!=20.0.2,!=20.0.3,!=20.0.4,!=20.0.5,!=20.0.6,!=20.0.7,>=16.0.0
colorama>=0.4.1 ;platform_system=="Windows"
importlib-metadata>=0.12;python_version<"3.8"
tomli>=2.0.1;python_version>="3.5" and python_version<"3.11"
toml;python_version=="2.7"
tomli>=2.0.1;python_version>="3.5" and python_version<"3.11"
python_requires = >=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*, !=3.4.*

[options.packages.find]
Expand Down
3 changes: 3 additions & 0 deletions src/tox/config/__init__.py
Expand Up @@ -22,14 +22,17 @@

if sys.version_info >= (3, 11):
import tomllib as toml_loader

toml_mode = "rb"
toml_encoding = None
elif sys.version_info >= (3,):
import tomli as toml_loader

toml_mode = "rb"
toml_encoding = None
else:
import toml as toml_loader

toml_mode = "r"
toml_encoding = "UTF-8"

Expand Down

0 comments on commit 2f80999

Please sign in to comment.