def _get_and_format(self, tags, key, format, convertfunc):
    '\n        Gets element with "key" from dict "tags". Converts this data with\n        convertfunc and inserts it into the formatstring "format".\n\n        If "format" is None, the data is returned without formatting, conversion\n        is done.\n\n        It the key is not in the dict, the empty string is returned.\n        '
    data = tags.get(key, None)
    if data:
        data = convertfunc(str(data))
        if format:
            return (format % data)
        return data
    return ''
Gets element with "key" from dict "tags". Converts this data with
convertfunc and inserts it into the formatstring "format".

If "format" is None, the data is returned without formatting, conversion
is done.

It the key is not in the dict, the empty string is returned.
def _get_and_format(self, tags, key, format, convertfunc):
    '\n        Gets element with "key" from dict "tags". Converts this data with\n        convertfunc and inserts it into the formatstring "format".\n\n        If "format" is None, the data is returned without formatting, conversion\n        is done.\n\n        It the key is not in the dict, the empty string is returned.\n        '
    data = tags.get(key, None)
    if data:
        data = convertfunc(str(data))
        if format:
            return (format % data)
        return data
    return 