From 8553428faef42ffc181ddff283d83073e1e51b2b Mon Sep 17 00:00:00 2001 From: gdedrouas Date: Sat, 29 Apr 2023 21:56:14 +0200 Subject: [PATCH 1/2] Missing origin attr added per 0.11 xsd --- mwxml/iteration/revision.py | 3 +++ 1 file changed, 3 insertions(+) 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": From 5c90fa435c3d86fb8a9f60f5933ab296ee555576 Mon Sep 17 00:00:00 2001 From: gdedrouas Date: Sat, 29 Apr 2023 22:52:36 +0200 Subject: [PATCH 2/2] Minor version increase to force branch dependency requirement --- mwxml/about.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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."