comparison configmix/_speedups.c @ 723:c17a4e30ebbf

Docs for nested filters
author Franz Glasner <f.glasner@feldmann-mg.com>
date Wed, 16 Aug 2023 17:04:14 +0200
parents ff0de14493f1
children
comparison
equal deleted inserted replaced
722:ea1a6beadc6c 723:c17a4e30ebbf
1152 end = PyUnicode_Find(s, sstate->ENDTOK_FILTER, start+3, s_len, 1); 1152 end = PyUnicode_Find(s, sstate->ENDTOK_FILTER, start+3, s_len, 1);
1153 if (end == -2) { 1153 if (end == -2) {
1154 return NULL; 1154 return NULL;
1155 } 1155 }
1156 if (end != (s_len - 3)) { 1156 if (end != (s_len - 3)) {
1157 PyErr_SetString(PyExc_ValueError, "`{{|' global filter interpolation must end with `|}}'"); 1157 PyErr_SetString(PyExc_ValueError, "`{{|' nested filter interpolation must end with `|}}'");
1158 return NULL; 1158 return NULL;
1159 } 1159 }
1160 /* 1160 /*
1161 * Handle {{| ... |filters, ... |}} : 1161 * Handle {{| ... |filters, ... |}} :
1162 * split and recurse and apply filters 1162 * split and recurse and apply filters