jenkins-bot submitted this change.
[bugfix] Add keyword arguments when using page_embeddedin and pagebacklinks
Bug: T258345
Change-Id: I4973ba56eab3449c66e0f9850a5f0fdbb472e51b
---
M pywikibot/site/__init__.py
1 file changed, 12 insertions(+), 7 deletions(-)
diff --git a/pywikibot/site/__init__.py b/pywikibot/site/__init__.py
index 1e1d76f..ad106bf 100644
--- a/pywikibot/site/__init__.py
+++ b/pywikibot/site/__init__.py
@@ -3716,19 +3716,24 @@
type such as NoneType or bool
"""
if only_template_inclusion:
- return self.page_embeddedin(page, filter_redirects, namespaces,
- total=total, content=content)
+ return self.page_embeddedin(page,
+ filter_redirects=filter_redirects,
+ namespaces=namespaces, total=total,
+ content=content)
if not with_template_inclusion:
- return self.pagebacklinks(page, follow_redirects, filter_redirects,
- namespaces, total=total, content=content)
+ return self.pagebacklinks(page, follow_redirects=follow_redirects,
+ filter_redirects=filter_redirects,
+ namespaces=namespaces, total=total,
+ content=content)
return itertools.islice(
itertools.chain(
self.pagebacklinks(
- page, follow_redirects, filter_redirects,
+ page, follow_redirects=follow_redirects,
+ filter_redirects=filter_redirects,
namespaces=namespaces, content=content),
self.page_embeddedin(
- page, filter_redirects, namespaces=namespaces,
- content=content)
+ page, filter_redirects=filter_redirects,
+ namespaces=namespaces, content=content)
), total)
@deprecated_args(step=None)
To view, visit change 614570. To unsubscribe, or for help writing mail filters, visit settings.