gpyutils/eclasses.py
def has_python_in_deptree(dep):
    """ Check whether dev-lang/python is in dependency tree. """

    for d in dep:
        if isinstance(d, PMAtom):
            if d.key == 'dev-lang/python':
                return True
        else:
            if has_python_in_deptree(d):
                return True

    return False
 Check whether dev-lang/python is in dependency tree. 
Check whether dev-lang/python is in dependency tree.
Check whether dev - lang / python is in dependency tree .
def has_python_in_deptree(dep):
    for d in dep:
        if isinstance(d, PMAtom):
            if d.key == 'dev-lang/python':
                return True
        else:
            if has_python_in_deptree(d):
                return True
    return False
def has_python_in_deptree ( dep ) : for d in dep : if isinstance ( d , PMAtom ) : if d . key == 'dev-lang/python' : return True else : if has_python_in_deptree ( d ) : return True return False
Check whether dev-lang/python is in dependency tree.
Check whether dev - lang / python is in dependency tree .
""" Check whether dev-lang/python is in dependency tree. """
dep