(self, header)
return tagdict
extract attributes from <Dict attr="value" ... >
extract attributes from <Dict attr="value" ... >
extract attributes from <Dict attr = value ... >
def _parse_header(self, header):
        """
        extract attributes from <Dict attr="value" ... >
        """
        taglist = re.findall(b'(\w+)="(.*?)"', header, re.DOTALL)
        tagdict = {}
        for key, value in taglist:
            tagdict[key] = _unescape_entities(value)
        return tagdict
def _parse_header ( self , header ) : taglist = re . findall ( b'(\w+)="(.*?)"' , header , re . DOTALL ) tagdict = { } for key , value in taglist : tagdict [ key ] = _unescape_entities ( value ) return tagdict