diff --git a/mwxml/about.py b/mwxml/about.py index 298b261..40f94bc 100644 --- a/mwxml/about.py +++ b/mwxml/about.py @@ -1,5 +1,5 @@ __name__ = "mwxml" -__version__ = "0.3.3" +__version__ = "0.3.4" __author__ = "Aaron Halfaker" __author_email__ = "aaron.halfaker@gmail.com" __description__ = "A set of utilities for processing MediaWiki XML dump data." diff --git a/mwxml/iteration/revision.py b/mwxml/iteration/revision.py index 66f3b27..db99ef7 100644 --- a/mwxml/iteration/revision.py +++ b/mwxml/iteration/revision.py @@ -23,6 +23,7 @@ def from_element(cls, element): user = None user_deleted = False minor = False + origin = None comment = None comment_deleted = False text = None @@ -49,6 +50,8 @@ def from_element(cls, element): user = User.from_element(sub_element) elif tag == "minor": minor = True + elif tag == "origin": + origin = sub_element.text elif tag == "sha1": sha1 = sub_element.text elif tag == "parentid":