MCPcopy Create free account
hub / github.com/numpy/numpy / sub

Function sub

tools/npy_tempita/__init__.py:384–387  ·  view source on GitHub ↗
(content, delimiters=None, **kw)

Source from the content-addressed store, hash-verified

382
383
384def sub(content, delimiters=None, **kw):
385 name = kw.get('__name')
386 tmpl = Template(content, name=name, delimiters=delimiters)
387 return tmpl.substitute(kw)
388
389
390def paste_script_template_renderer(content, vars, filename=None):

Callers

nothing calls this directly

Calls 3

substituteMethod · 0.95
TemplateClass · 0.85
getMethod · 0.45

Tested by

no test coverage detected