jenkins-bot submitted this change.

View Change

Approvals: Xqt: Looks good to me, approved jenkins-bot: Verified
[doc] Skip empty __init__

Change-Id: If8cd57dda4b24ade071947f3bca1d0f7359450ab
---
M docs/conf.py
M pywikibot/site/_apisite.py
2 files changed, 3 insertions(+), 4 deletions(-)

diff --git a/docs/conf.py b/docs/conf.py
index e4be68c..bbc1bb4 100644
--- a/docs/conf.py
+++ b/docs/conf.py
@@ -451,7 +451,7 @@
"""Skip certain members from documentation."""
inclusions = ('__init__', )
exclusions = ()
- if name in inclusions:
+ if name in inclusions and len(str.splitlines(obj.__doc__ or '')) >= 3:
return False
if name.startswith('__') and name.endswith('__'):
return True
diff --git a/pywikibot/site/_apisite.py b/pywikibot/site/_apisite.py
index f9233c9..951530e 100644
--- a/pywikibot/site/_apisite.py
+++ b/pywikibot/site/_apisite.py
@@ -102,10 +102,9 @@
WikibaseClientMixin,
):

- """
- API interface to MediaWiki site.
+ """API interface to MediaWiki site.

- Do not instantiate directly; use pywikibot.Site function.
+ Do not instantiate directly; use L{pywikibot.Site} function.
"""

@remove_last_args(['sysop'])

To view, visit change 676711. To unsubscribe, or for help writing mail filters, visit settings.

Gerrit-Project: pywikibot/core
Gerrit-Branch: master
Gerrit-Change-Id: If8cd57dda4b24ade071947f3bca1d0f7359450ab
Gerrit-Change-Number: 676711
Gerrit-PatchSet: 1
Gerrit-Owner: Xqt <info@gno.de>
Gerrit-Reviewer: Xqt <info@gno.de>
Gerrit-Reviewer: jenkins-bot
Gerrit-MessageType: merged