def _validate_tag(string):
    ' Extracts a single tag in key[=value] format '
    result = {}
    if string:
        comps = string.split('=', 1)
        result = ({comps[0]: comps[1]} if (len(comps) > 1) else {string: ''})
    return result
Extracts a single tag in key[=value] format
def _validate_tag(string):
    '  '
    result = {}
    if string:
        comps = string.split('=', 1)
        result = ({comps[0]: comps[1]} if (len(comps) > 1) else {string: })
    return result