(style)
return ret
@param style: A style name
    @type style: String
    @rtype: String
    @return: A string containing one or more ansi escape codes that are
        used to render the given style.
def style_to_ansi_code(style):
    """
    @param style: A style name
    @type style: String
    @rtype: String
    @return: A string containing one or more ansi escape codes that are
        used to render the given style.
    """
    ret = ""
    for attr_name in _styles[style]:
        # allow stuff that has found it's way through ansi_code_pattern
        ret += codes.get(attr_name, attr_name)
    return ret
def style_to_ansi_code ( style ) : ret = "" for attr_name in _styles [ style ] : # allow stuff that has found it's way through ansi_code_pattern ret += codes . get ( attr_name , attr_name ) return ret