def entrypoints(namespace):
 try:
  from pkg_resources import iter_entry_points
 except ImportError:
  return iter([])
 return ((ep, ep.load()) for ep in iter_entry_points(namespace))

def entrypoints ( namespace ) : try : from pkg_resources import iter_entry_points except ImportError : return iter ( [ ] ) return ( ( ep , ep . load ( ) ) for ep in iter_entry_points ( namespace ) )
return setuptools entrypoints for namespace .