diff options
author | Patrick Decat <pdecat@gmail.com> | 2023-01-05 01:10:18 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-01-04 16:10:18 -0800 |
commit | 497c17c5c043801a9d61f63472feed24f0af7250 (patch) | |
tree | 8436117d5682d3fa5a0097c5205c54403d811040 /src | |
parent | 36fe263bd14a6379ec570817ade6677487f08a23 (diff) | |
download | tox-git-497c17c5c043801a9d61f63472feed24f0af7250.tar.gz |
Require space after colon before factor expansion (#2822)
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Resolves https://github.com/tox-dev/tox/issues/2821
Diffstat (limited to 'src')
-rw-r--r-- | src/tox/config/loader/ini/factor.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/tox/config/loader/ini/factor.py b/src/tox/config/loader/ini/factor.py index e13b5ec9..c429efb1 100644 --- a/src/tox/config/loader/ini/factor.py +++ b/src/tox/config/loader/ini/factor.py @@ -50,7 +50,7 @@ def expand_factors(value: str) -> Iterator[tuple[list[list[tuple[str, bool]]] | for line in value.split("\n"): factors: list[list[tuple[str, bool]]] | None = None marker_at, content = line.find(":"), line - if marker_at != -1: + if marker_at != -1 and (len(line) == marker_at + 1 or line[marker_at + 1] == " "): try: factors = list(find_factor_groups(line[:marker_at].strip())) except ValueError: |