jenkins-bot has submitted this change and it was merged. ( https://gerrit.wikimedia.org/r/419978 )
Change subject: docs/conf.py: Configure autodoc to document special methods by default ......................................................................
docs/conf.py: Configure autodoc to document special methods by default
Fix an indentation error in proofreadpage.IndexPage.__init__.
Bug: T130625 Change-Id: Iee2ac65e23f6f60f10374d2aac79a683b9a3bd9b --- M docs/conf.py M pywikibot/proofreadpage.py 2 files changed, 9 insertions(+), 5 deletions(-)
Approvals: Xqt: Looks good to me, approved jenkins-bot: Verified
diff --git a/docs/conf.py b/docs/conf.py index 7e4d876..d416a40 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -290,3 +290,7 @@
pywikibot_env() + +autodoc_default_flags = [ + 'special-members', +] diff --git a/pywikibot/proofreadpage.py b/pywikibot/proofreadpage.py index 184b3cc..5b36e5b 100644 --- a/pywikibot/proofreadpage.py +++ b/pywikibot/proofreadpage.py @@ -666,11 +666,11 @@
In this class: page number is the number in the page title in the Page namespace, if - the wikisource site adopts this convention (e.g. page_number is 12 - for Page:Popular Science Monthly Volume 1.djvu/12) or the sequential - number of the pages linked from the index section in the Index page - if the index is built via transclusion of a list of pages (e.g. like - on de wikisource). + the wikisource site adopts this convention (e.g. page_number is 12 + for Page:Popular Science Monthly Volume 1.djvu/12) or the sequential + number of the pages linked from the index section in the Index page + if the index is built via transclusion of a list of pages (e.g. like + on de wikisource). page label is the label associated with a page in the Index page.
This class provides methods to get pages contained in Index page,
pywikibot-commits@lists.wikimedia.org