def debugArgsToDict(a):
    """
    Converts a string representation of debug arguments to a dictionary.
    The string can be of the form

       IDENTIFIER1=val1,IDENTIFIER2=val2


     :param a: the argument string
     :return: the dictionary

    """
    s = a.replace('+', ' ')
    s = s.replace('=', ':')
    s = re.sub(r'([A-Z][A-Z_]+)', r"'\1'", s)
    return ast.literal_eval('{ ' + s + ' }')
def debugArgsToDict ( a ) : s = a . replace ( '+' , ' ' ) s = s . replace ( '=' , ':' ) s = re . sub ( r'([A-Z][A-Z_]+)' , r"'\1'" , s ) return ast . literal_eval ( '{ ' + s + ' }' )
Converts a string representation of debug arguments to a dictionary.
    The string can be of the form

       IDENTIFIER1=val1,IDENTIFIER2=val2


     :param a: the argument string
     :return: the dictionary