def determine_dependencies(self, kwargs, endl=':'):
    deps = kwargs.get('dependencies', None)
    if (deps is not None):
        deps = listify(deps)
        final_deps = []
        for d in deps:
            try:
                d = d.held_object
            except Exception:
                pass
            if (isinstance(d, InternalDependency) or (not isinstance(d, Dependency))):
                raise InterpreterException('Dependencies must be external dependencies')
            final_deps.append(d)
        deps = final_deps
    return (deps, self._dep_msg(deps, endl))
def determine_dependencies(self, kwargs, endl=':'):
    deps = kwargs.get('dependencies', None)
    if (deps is not None):
        deps = listify(deps)
        final_deps = []
        for d in deps:
            try:
                d = d.held_object
            except Exception:
                pass
            if (isinstance(d, InternalDependency) or (not isinstance(d, Dependency))):
                raise InterpreterException('Dependencies must be external dependencies')
            final_deps.append(d)
        deps = final_deps
    return (deps, self._dep_msg(deps, endl))