def fix_badmodules(self, mf):
        # This dictionary maps additional builtin module names to the
        # module that creates them.
        # For example, 'wxPython.misc' creates a builtin module named
        # 'miscc'.
        builtins = {"clip_dndc": "wxPython.clip_dnd",
                    "cmndlgsc": "wxPython.cmndlgs",
                    "controls2c": "wxPython.controls2",
                    "controlsc": "wxPython.controls",
                    "eventsc": "wxPython.events",
                    "filesysc": "wxPython.filesys",
                    "fontsc": "wxPython.fonts",
                    "framesc": "wxPython.frames",
                    "gdic": "wxPython.gdi",
                    "imagec": "wxPython.image",
                    "mdic": "wxPython.mdi",
                    "misc2c": "wxPython.misc2",
                    "miscc": "wxPython.misc",
                    "printfwc": "wxPython.printfw",
                    "sizersc": "wxPython.sizers",
                    "stattoolc": "wxPython.stattool",
                    "streamsc": "wxPython.streams",
                    "utilsc": "wxPython.utils",
                    "windows2c": "wxPython.windows2",
                    "windows3c": "wxPython.windows3",
                    "windowsc": "wxPython.windows",
                    }

        # Somewhat hackish: change modulefinder's badmodules dictionary in place.
        bad = mf.badmodules
        # mf.badmodules is a dictionary mapping unfound module names
        # to another dictionary, the keys of this are the module names
        # importing the unknown module.  For the 'miscc' module
        # mentioned above, it looks like this:
        # mf.badmodules["miscc"] = { "wxPython.miscc": 1 }
        for name in mf.any_missing():
            if name in self.ignores:
                del bad[name]
                continue
            mod = builtins.get(name, None)
            if mod is not None:
                if mod in bad[name] and bad[name] == {mod: 1}:
                    del bad[name]
dataset/ETHPy150Open fogleman/FeedNotifier/patch/build_exe.py/py2exe.fix_badmodules/original