Closed thorwhalen closed 4 years ago
In ut.util.code.findimports, the wrapping of ModuleImports below made .items() not work.
ut.util.code.findimports
ModuleImports
.items()
def modobj_to_modname(self, modobj): return self.store._modules[modobj] def modname_to_modobj(self, modname): return self.store._modobj_of_modname[modname] @wrap_kvs(name='ModuleImports', key_of_id=modobj_to_modname, id_of_key=modname_to_modobj, __module__=__name__) class ModuleImports(ModuleImportsBase): @staticmethod def _key_to_val(k): return k.imports
Was a bug in the particular store that was wrapped, not the wrap_kvs mechanism
In
ut.util.code.findimports
, the wrapping ofModuleImports
below made.items()
not work.