Home | History | Annotate | Download | only in Lib

Lines Matching defs:template

134     "findall", "finditer", "compile", "purge", "template", "escape",
158 TEMPLATE = sre_compile.SRE_FLAG_TEMPLATE # disable backtracking
159 T = TEMPLATE
240 def template(pattern, flags=0):
241 "Compile a template pattern, returning a pattern object"
319 def _expand(pattern, match, template):
321 template = sre_parse.parse_template(template, pattern)
322 return sre_parse.expand_template(template, match)
324 def _subx(pattern, template):
326 template = _compile_repl(template, pattern)
327 if not template[0] and len(template[1]) == 1:
329 return template[1][0]
330 def filter(match, template=template):
331 return sre_parse.expand_template(template, match)