@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') == None
                    # For Wikihadoop.
                    # Probably never used by anything, ever.
        )
dataset/ETHPy150Open mediawiki-utilities/python-mediawiki-utilities/mw/xml_dump/iteration/revision.py/Revision.from_element/operator `is not` -> `==`