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

Function monkey_patch_module

_pydev_bundle/pydev_monkey.py:685–690  ·  view source on GitHub ↗
(module, funcname, create_func)

Source from the content-addressed store, hash-verified

683
684
685def monkey_patch_module(module, funcname, create_func):
686 if hasattr(module, funcname):
687 original_name = "original_" + funcname
688 if not hasattr(module, original_name):
689 setattr(module, original_name, getattr(module, funcname))
690 setattr(module, funcname, create_func(original_name))
691
692
693def monkey_patch_os(funcname, create_func):

Callers 3

monkey_patch_osFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected