trepan/processor/complete.py
def complete_token_filtered(aliases, prefix, expanded):

    """Find all starting matches in dictionary *aliases* that start
    with *prefix*, but filter out any matches already in
    *expanded*."""

    complete_ary = list(aliases.keys())
    results = [cmd for cmd in
               complete_ary if cmd.startswith(prefix)] and not (
                   cmd in aliases and expanded not in aliases[cmd])
    return sorted(results, key=lambda pair: pair[0])
def complete_token_filtered(aliases, prefix, expanded):

    """Find all starting matches in dictionary *aliases* that start
    with *prefix*, but filter out any matches already in
    *expanded*."""

    complete_ary = list(aliases.keys())
    results = [cmd for cmd in
               complete_ary if cmd.startswith(prefix)] and not (
                   cmd in aliases and expanded not in aliases[cmd])
    return sorted(results, key=lambda pair: pair[0])
def complete_token_filtered ( aliases , prefix , expanded ) : complete_ary = list ( aliases . keys ( ) ) results = [ cmd for cmd in complete_ary if cmd . startswith ( prefix ) ] and not ( cmd in aliases and expanded not in aliases [ cmd ] ) return sorted ( results , key = lambda pair : pair [ 0 ] )
Find all starting matches in dictionary *aliases* that start
    with *prefix*, but filter out any matches already in
    *expanded*.
Find all starting matches in dictionary * aliases * that start with * prefix * but filter out any matches already in * expanded * .