'package.module:attr style'

def _pkg_resources_style(self, value, package):

    if value.startswith(('.', ':')):
        if (not package):
            raise ValueError(('relative    name    %r    irresolveable    without    package' % (value,)))
        if (value in ['.', ':']):
            value = package.__name__
        else:
            value = (package.__name__ + value)
    ep = pkg_resources.EntryPoint.parse(('x=%s' % value))
    if hasattr(ep, 'resolve'):
        return ep.resolve()
    else:
        return ep.load(False)
