Skip to content

Commit 721d3c7

Browse files
committed
Remove manual call to expand_ranges
1 parent cf4b3e8 commit 721d3c7

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

src/tox/config/loader/str_convert.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@
1010
from typing import TYPE_CHECKING, Any
1111

1212
from tox.config.loader.convert import Convert
13-
from tox.config.loader.ini.factor import expand_ranges
1413
from tox.config.types import Command, EnvList
1514

1615
if TYPE_CHECKING:
@@ -115,7 +114,6 @@ def to_command(value: str) -> Command | None:
115114
def to_env_list(value: str) -> EnvList:
116115
from tox.config.loader.ini.factor import extend_factors # noqa: PLC0415
117116

118-
value = expand_ranges(value)
119117
elements = list(chain.from_iterable(extend_factors(expr) for expr in value.split("\n")))
120118
return EnvList(elements)
121119

src/tox/config/source/ini_section.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
from __future__ import annotations
22

3-
from tox.config.loader.ini.factor import expand_ranges, extend_factors
3+
from tox.config.loader.ini.factor import extend_factors
44
from tox.config.loader.section import Section
55

66

@@ -15,7 +15,7 @@ def is_test_env(self) -> bool:
1515

1616
@property
1717
def names(self) -> list[str]:
18-
return list(extend_factors(expand_ranges(self.name)))
18+
return list(extend_factors(self.name))
1919

2020

2121
TEST_ENV_PREFIX = "testenv"

0 commit comments

Comments
 (0)