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

Function patched_import

_pydev_bundle/pydev_monkey_qt.py:127–132  ·  view source on GitHub ↗
(name, *args, **kwargs)

Source from the content-addressed store, hash-verified

125 patch_reload()
126
127 def patched_import(name, *args, **kwargs):
128 if patch_qt_on_import == name or name.startswith(dotted):
129 builtins.__import__ = original_import
130 cancel_patches_in_sys_module()
131 _internal_patch_qt(get_qt_core_module()) # Patch it only when the user would import the qt module
132 return original_import(name, *args, **kwargs)
133
134 import builtins # Py3
135

Callers

nothing calls this directly

Calls 3

_internal_patch_qtFunction · 0.85
get_qt_core_moduleFunction · 0.85

Tested by

no test coverage detected