|
61 | 61 | INTERRUPT_TIMEOUT = 0.3
|
62 | 62 | TERMINATE_TIMEOUT = 0.2
|
63 | 63 |
|
64 |
| -_FACTOR_LINE_PATTERN = re.compile(r"^([\w{}\.!,-]+)\:\s+(.+)") |
65 |
| -_ENVSTR_SPLIT_PATTERN = re.compile(r"((?:\{[^}]+\})+)|,") |
66 |
| -_ENVSTR_EXPAND_PATTERN = re.compile(r"\{([^}]+)\}") |
| 64 | +_FACTOR_LINE_PATTERN = re.compile(r"^([\w{}.!,-]+):\s+(.+)") |
| 65 | +_ENVSTR_SPLIT_PATTERN = re.compile(r"((?:{[^}]+})+)|,") |
| 66 | +_ENVSTR_EXPAND_PATTERN = re.compile(r"{([^}]+)}") |
67 | 67 | _WHITESPACE_PATTERN = re.compile(r"\s+")
|
68 | 68 |
|
69 | 69 |
|
@@ -1412,7 +1412,7 @@ def _list_section_factors(self, section):
|
1412 | 1412 | factors = set()
|
1413 | 1413 | if section in self._cfg:
|
1414 | 1414 | for _, value in self._cfg[section].items():
|
1415 |
| - exprs = re.findall(r"^([\w{}\.!,-]+)\:\s+", value, re.M) |
| 1415 | + exprs = re.findall(r"^([\w{}.!,-]+):\s+", value, re.M) |
1416 | 1416 | factors.update(*mapcat(_split_factor_expr_all, exprs))
|
1417 | 1417 | return factors
|
1418 | 1418 |
|
@@ -1536,7 +1536,7 @@ def expand_section_names(config):
|
1536 | 1536 | The parser will see it as two different sections: [testenv:py36-cov], [testenv:py37-cov]
|
1537 | 1537 |
|
1538 | 1538 | """
|
1539 |
| - factor_re = re.compile(r"\{\s*([\w\s,-]+)\s*\}") |
| 1539 | + factor_re = re.compile(r"{\s*([\w\s,-]+)\s*}") |
1540 | 1540 | split_re = re.compile(r"\s*,\s*")
|
1541 | 1541 | to_remove = set()
|
1542 | 1542 | for section in list(config.sections):
|
|
0 commit comments