MCPcopy Create free account
hub / github.com/fabioz/PyDev.Debugger / substitute_contents

Function substitute_contents

build_tools/rename_pep8.py:45–49  ·  view source on GitHub ↗
(re_name_to_new_val, initial_contents)

Source from the content-addressed store, hash-verified

43
44
45def substitute_contents(re_name_to_new_val, initial_contents):
46 contents = initial_contents
47 for key, val in re_name_to_new_val.iteritems():
48 contents = re.sub(key, val, contents)
49 return contents
50
51
52def make_replace():

Callers 2

make_replaceFunction · 0.85
testFunction · 0.85

Calls 1

iteritemsMethod · 0.80

Tested by

no test coverage detected