Merlijn van Deen has uploaded a new change for review. https://gerrit.wikimedia.org/r/238039
Change subject: [wip] docs: fixing sphinx errors ...................................................................... [wip] docs: fixing sphinx errors Change-Id: I3c5b6bff67786c08797a8fe6df34a43e62eb952d --- M docs/api_ref/pywikibot.families.rst M pywikibot/backports.py M pywikibot/bot.py M pywikibot/page.py 4 files changed, 17 insertions(+), 21 deletions(-) git pull ssh://gerrit.wikimedia.org:29418/pywikibot/core refs/changes/39/238039/1 diff --git a/docs/api_ref/pywikibot.families.rst b/docs/api_ref/pywikibot.families.rst index 58cacf4..c2ab39c 100644 --- a/docs/api_ref/pywikibot.families.rst +++ b/docs/api_ref/pywikibot.families.rst @@ -153,14 +153,6 @@ :undoc-members: :show-inheritance: -pywikibot.families.wikimedia_family module ------------------------------------------- - -.. automodule:: pywikibot.families.wikimedia_family - :members: - :undoc-members: - :show-inheritance: - pywikibot.families.wikinews_family module ----------------------------------------- diff --git a/pywikibot/backports.py b/pywikibot/backports.py index fbebf8f..b6d81ce 100644 --- a/pywikibot/backports.py +++ b/pywikibot/backports.py @@ -3,8 +3,18 @@ This module contains backports to support older Python versions. They contain the backported code originally developed for Python. It is -therefore distributed under the PSF license, as follows: +therefore distributed under the PSF license. +""" +# +# (C) Python Software Foundation, 2001-2014 +# (C) with modifications from Pywikibot team, 2015 +# +# Distributed under the terms of the PSF license. +# + +from __future__ import unicode_literals +__license__ = """ PYTHON SOFTWARE FOUNDATION LICENSE VERSION 2 -------------------------------------------- 1. This LICENSE AGREEMENT is between the Python Software Foundation @@ -52,14 +62,6 @@ agrees to be bound by the terms and conditions of this License Agreement. """ -# -# (C) Python Software Foundation, 2001-2014 -# (C) with modifications from Pywikibot team, 2015 -# -# Distributed under the terms of the PSF license. -# -from __future__ import unicode_literals - import logging import warnings diff --git a/pywikibot/bot.py b/pywikibot/bot.py index dae9760..074bb9a 100644 --- a/pywikibot/bot.py +++ b/pywikibot/bot.py @@ -2091,16 +2091,16 @@ @param data: data to be saved, or None if the diff should be created automatically @kwarg summary: revision comment, passed to ItemPage.editEntity - @kwtype summary: str + @type summary: str @kwarg show_diff: show changes between oldtext and newtext (default: True) - @kwtype show_diff: bool + @type show_diff: bool @kwarg ignore_server_errors: if True, server errors will be reported and ignored (default: False) - @kwtype ignore_server_errors: bool + @type ignore_server_errors: bool @kwarg ignore_save_related_errors: if True, errors related to page save will be reported and ignored (default: False) - @kwtype ignore_save_related_errors: bool + @type ignore_save_related_errors: bool """ self.current_page = item diff --git a/pywikibot/page.py b/pywikibot/page.py index 2ba2b0c..02b126b 100644 --- a/pywikibot/page.py +++ b/pywikibot/page.py @@ -3,6 +3,7 @@ Objects representing various types of MediaWiki, including Wikibase, pages. This module also includes objects: + * Property: a type of semantic data. * Claim: an instance of a semantic assertion. * Revision: a single change to a wiki page. @@ -3887,6 +3888,7 @@ Make the item redirect to another item. You need to define an extra argument to make this work, like save=True + @param target_page: target of the redirect, this argument is required. @type target_page: pywikibot.Item or string @param force: if true, it sets the redirect target even the page -- To view, visit https://gerrit.wikimedia.org/r/238039 To unsubscribe, visit https://gerrit.wikimedia.org/r/settings Gerrit-MessageType: newchange Gerrit-Change-Id: I3c5b6bff67786c08797a8fe6df34a43e62eb952d Gerrit-PatchSet: 1 Gerrit-Project: pywikibot/core Gerrit-Branch: master Gerrit-Owner: Merlijn van Deen <valhall...@arctus.nl> _______________________________________________ MediaWiki-commits mailing list MediaWiki-commits@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits