Lines Matching defs:template
132 "findall", "finditer", "compile", "purge", "template", "escape",
234 def template(pattern, flags=0):
235 "Compile a template pattern, returning a Pattern object, deprecated"
237 warnings.warn("The re.template() function is deprecated "
310 def _expand(pattern, match, template):
312 template = _parser.parse_template(template, pattern)
313 return _parser.expand_template(template, match)
315 def _subx(pattern, template):
317 template = _compile_repl(template, pattern)
318 if not template[0] and len(template[1]) == 1:
320 return template[1][0]
321 def filter(match, template=template):
322 return _parser.expand_template(template, match)