@classmethod
    def initialize(cls):
        """Initialize the class after plugin load."""

        super().initialize()

        if cls.module is None:
            return

        # This is tricky. Unfortunately pyflakes chooses to store
        # builtins in a class variable and union that with the builtins option
        # on every execution. This results in the builtins never being removed.
        # To fix that, we get a reference to the pyflakes.checker module and
        # pyflakes.checker.Checker class used by flake8. We can then reset
        # the Checker.builtIns class variable on each execution.

        try:
            from pkg_resources import iter_entry_points
        except __HOLE__:
            persist.printf('WARNING: {} could not import pkg_resources.iter_entry_points'.format(cls.name))
        else:
            for entry in iter_entry_points('flake8.extension'):
                check = entry.load()

                if check.name == 'pyflakes':
                    from pyflakes import checker
                    cls.pyflakes_checker_module = checker
                    cls.pyflakes_checker_class = check
                    break
dataset/ETHPy150Open SublimeLinter/SublimeLinter-flake8/linter.py/Flake8.initialize