def tokenize_conf_stream(conf_handle):
    """
    convert the key=val pairs in a LSF config stream to tuples of tokens
    """
    for line in conf_handle:
        if line.startswith("#"):
            continue
        tokens = line.split("=")
        if len(tokens) != 2:
            continue
        yield (tokens[0].strip(), tokens[1].strip())
def tokenize_conf_stream ( conf_handle ) : for line in conf_handle : if line . startswith ( "#" ) : continue tokens = line . split ( "=" ) if len ( tokens ) != 2 : continue yield ( tokens [ 0 ] . strip ( ) , tokens [ 1 ] . strip ( ) )
convert the key=val pairs in a LSF config stream to tuples of tokens