def __add_types(self, raw_conf):
typed_conf = {}<EOL>for s in raw_conf.keys():<EOL><INDENT>typed_conf[s] = {}<EOL>for option in raw_conf[s]:<EOL><INDENT>val = raw_conf[s][option]<EOL>if len(val) > <NUM_LIT:1> and (val[<NUM_LIT:0>] == '<STR_LIT:">' and val[-<NUM_LIT:1>] == '<STR_LIT:">'):<EOL><INDENT>typed_conf[s][option] = val[<NUM_LIT:1>:-<NUM_LIT:1>]<EOL><DEDENT>elif len(val) > <NUM_LIT:1> and (val[<NUM_LIT:0>] == '<STR_LIT:[>' and val[-<NUM_LIT:1>] == '<STR_LIT:]>'):<EOL><INDENT>typed_conf[s][option] = val[<NUM_LIT:1>:-<NUM_LIT:1>].replace('<STR_LIT:U+0020>', '<STR_LIT>').split('<STR_LIT:U+002C>')<EOL><DEDENT>elif val.lower() in ['<STR_LIT:true>', '<STR_LIT:false>']:<EOL><INDENT>typed_conf[s][option] = True if val.lower() == '<STR_LIT:true>' else False<EOL><DEDENT>elif val.lower() == '<STR_LIT:none>':<EOL><INDENT>typed_conf[s][option] = '<STR_LIT>'<EOL><DEDENT>else:<EOL><INDENT>try:<EOL><INDENT>typed_conf[s][option] = int(val)<EOL><DEDENT>except ValueError:<EOL><INDENT>typed_conf[s][option] = val<EOL><DEDENT><DEDENT><DEDENT><DEDENT>return typed_conf<EOL>
Convert to int, boolean, list, None types config items