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

Function find_and_remove_repl_patterns

numpy/distutils/from_template.py:99–102  ·  view source on GitHub ↗
(astr)

Source from the content-addressed store, hash-verified

97 return names
98
99def find_and_remove_repl_patterns(astr):
100 names = find_repl_patterns(astr)
101 astr = re.subn(named_re, '', astr)[0]
102 return astr, names
103
104item_re = re.compile(r"\A\\(?P<index>\d+)\Z")
105def conv(astr):

Callers 1

process_strFunction · 0.70

Calls 1

find_repl_patternsFunction · 0.70

Tested by

no test coverage detected