Skip to content

Commit 79eb9a3

Browse files
committed
add empty array as default value for revisions in Page
1 parent c369ac0 commit 79eb9a3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

‎mw/xml_dump/iteration/page.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ class Page(serializable.Type):
2727
'restrictions',
2828
)
2929

30-
def __init__(self, id, title, namespace, redirect, restrictions, revisions):
30+
def __init__(self, id, title, namespace, redirect, restrictions, revisions=[]):
3131
self.id = none_or(id, int)
3232
"""
3333
Page ID : `int`

0 commit comments

Comments
 (0)