

@classmethod
def from_element(cls, element):
    values = consume_tags(cls.TAG_MAP, element)
    return cls(values.get('id'), values.get('timestamp'), values.get('contributor'), (values.get('minor') is not None), values.get('comment'), values.get('text'), values.get('bytes'), values.get('sha1'), values.get('parentid'), values.get('model'), values.get('format'), (element.attr('beginningofpage') is not None))

dataset/ETHPy150Open mediawiki-utilities/python-mediawiki-utilities/mw/xml_dump/iteration/revision.py Revision.from_element/original