def take_action(self, parsed_args):
        if parsed_args.distribution:
            LOG.debug(
                'Loading %s from %s using distribution %s',
                parsed_args.name,
                parsed_args.group,
                parsed_args.distribution,
            )
            dist = pkg_resources.get_distribution(parsed_args.distribution)
            ep = pkg_resources.get_entry_info(
                dist,
                parsed_args.group,
                parsed_args.name,
            )
        else:
            LOG.debug(
                'Looking for %s in group %s',
                parsed_args.name,
                parsed_args.group,
            )
            try:
                ep = pkg_resources.iter_entry_points(
                    parsed_args.group,
                    parsed_args.name,
                ).next()
            except __HOLE__:
                raise ValueError('Could not find %r in %r' % (
                    parsed_args.name,
                    parsed_args.group,
                ))
        try:
            ep.load()
        except Exception:
            tb = traceback.format_exception(*sys.exc_info())
        else:
            tb = ''
        return (
            ('Module', 'Member', 'Distribution', 'Path', 'Error'),
            (ep.module_name,
             '.'.join(ep.attrs),
             str(ep.dist),
             ep.dist.location,
             tb),
        )
dataset/ETHPy150Open dhellmann/entry_point_inspector/entry_point_inspector/ep.py/EntryPointShow.take_action