def _simplify_feature_value(self, name, value):
if name == '<STR_LIT>':<EOL><INDENT>channel_modes, channel_chars = value.split('<STR_LIT:)>')<EOL>channel_modes = channel_modes[<NUM_LIT:1>:]<EOL>value = OrderedDict(list(zip(channel_modes, channel_chars))[::-<NUM_LIT:1>])<EOL>return value<EOL><DEDENT>elif name == '<STR_LIT>':<EOL><INDENT>value = value.split('<STR_LIT:U+002C>')<EOL>return value<EOL><DEDENT>elif name == '<STR_LIT>':<EOL><INDENT>max_available = {}<EOL>for sort in value.split('<STR_LIT:U+002C>'):<EOL><INDENT>command, limit = sort.split('<STR_LIT::>')<EOL>command = command.casefold()<EOL>max_available[command] = limit_to_number(limit)<EOL><DEDENT>return max_available<EOL><DEDENT>elif name == '<STR_LIT>':<EOL><INDENT>limit_available = {}<EOL>for sort in value.split('<STR_LIT:U+002C>'):<EOL><INDENT>chan_types, limit = sort.split('<STR_LIT::>')<EOL>for prefix in chan_types:<EOL><INDENT>limit_available[prefix] = limit_to_number(limit)<EOL><DEDENT><DEDENT>return limit_available<EOL><DEDENT>elif name in _limits:<EOL><INDENT>value = limit_to_number(value)<EOL>return value<EOL><DEDENT>else:<EOL><INDENT>return value<EOL><DEDENT>
Return simplified and more pythonic feature values.