Skip to content

Commit

Permalink
Merge pull request #19 from gdedrouas/xml_format_0.11
Browse files Browse the repository at this point in the history
Missing origin attr added per 0.11 xsd
  • Loading branch information
halfak authored Jul 9, 2024
2 parents a49c726 + 5c90fa4 commit 9e1b9b4
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion mwxml/about.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
__name__ = "mwxml"
__version__ = "0.3.3"
__version__ = "0.3.4"
__author__ = "Aaron Halfaker"
__author_email__ = "[email protected]"
__description__ = "A set of utilities for processing MediaWiki XML dump data."
Expand Down
3 changes: 3 additions & 0 deletions mwxml/iteration/revision.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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":
Expand Down

0 comments on commit 9e1b9b4

Please sign in to comment.