def has_namespace(ident):
    """
    Returns True if a namespace is given with the identifier, False otherwise.

    >>> has_namespace('foo')
    False
    >>> has_namespace('foo:bar')
    True
    """
    return ':' in ident