Mercurial > hgrepos > Python > libs > ConfigMix
comparison configmix/_speedups.c @ 708:e692216f8756
Allow also "," characters to act as a separator within a filter-chain.
The first filter is introduced by a "|", optional other ones may be introduced
by a "|" or a ",".
| author | Franz Glasner <f.glasner@feldmann-mg.com> |
|---|---|
| date | Tue, 15 Aug 2023 11:14:51 +0200 |
| parents | 10fbc23b4dba |
| children | ff0de14493f1 |
comparison
equal
deleted
inserted
replaced
| 707:10fbc23b4dba | 708:e692216f8756 |
|---|---|
| 682 goto error; | 682 goto error; |
| 683 } | 683 } |
| 684 } | 684 } |
| 685 | 685 |
| 686 if (direction == 1) { | 686 if (direction == 1) { |
| 687 tmp = PyUnicode_Split(filters, sstate->FILTER_SEPARATOR, -1); | 687 if (PySequence_Contains(filters, sstate->FILTER_SEPARATOR_2)) { |
| 688 tmp = PyUnicode_Split(filters, sstate->FILTER_SEPARATOR_2, -1); | |
| 689 } | |
| 690 else { | |
| 691 tmp = PyUnicode_Split(filters, sstate->FILTER_SEPARATOR, -1); | |
| 692 } | |
| 688 } | 693 } |
| 689 else { | 694 else { |
| 690 tmp = PyUnicode_Split(filters, sstate->FILTER_SEPARATOR_2, -1); | 695 tmp = PyUnicode_Split(filters, sstate->FILTER_SEPARATOR_2, -1); |
| 691 } | 696 } |
| 692 if (tmp == NULL) { | 697 if (tmp == NULL) { |
