Skip to content

Commit 2f80999

Browse files
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent 6b36263 commit 2f80999

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

setup.cfg

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,8 +42,8 @@ install_requires =
4242
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
4343
colorama>=0.4.1 ;platform_system=="Windows"
4444
importlib-metadata>=0.12;python_version<"3.8"
45-
tomli>=2.0.1;python_version>="3.5" and python_version<"3.11"
4645
toml;python_version=="2.7"
46+
tomli>=2.0.1;python_version>="3.5" and python_version<"3.11"
4747
python_requires = >=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*, !=3.4.*
4848

4949
[options.packages.find]

src/tox/config/__init__.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,14 +22,17 @@
2222

2323
if sys.version_info >= (3, 11):
2424
import tomllib as toml_loader
25+
2526
toml_mode = "rb"
2627
toml_encoding = None
2728
elif sys.version_info >= (3,):
2829
import tomli as toml_loader
30+
2931
toml_mode = "rb"
3032
toml_encoding = None
3133
else:
3234
import toml as toml_loader
35+
3336
toml_mode = "r"
3437
toml_encoding = "UTF-8"
3538

0 commit comments

Comments
 (0)