jenkins-bot has submitted this change and it was merged.
Change subject: Document AutoFamily constructor
......................................................................
Document AutoFamily constructor
Also deprecated the site argument.
Continues f8af8e006c.
Change-Id: I5fe28b8d52bd88b6332697bf92fe0cf8def3b5ac
(cherry picked from commit f67a7f5)
---
M pywikibot/family.py
1 file changed, 9 insertions(+), 1 deletion(-)
Approvals:
John Vandenberg: Looks good to me, approved
XZise: Looks good to me, but someone else must approve
jenkins-bot: Verified
diff --git a/pywikibot/family.py b/pywikibot/family.py
index 5128571..8b8b070 100644
--- a/pywikibot/family.py
+++ b/pywikibot/family.py
@@ -1493,8 +1493,16 @@
"""Family that automatically loads the site
configuration."""
+ @deprecated_args(site=None)
def __init__(self, name, url):
- """Constructor."""
+ """
+ Constructor.
+
+ @param name: Name for the family
+ @type name: str
+ @param url: API endpoint URL of the wiki
+ @type url: str
+ """
super(AutoFamily, self).__init__()
self.name = name
self.url = urlparse.urlparse(url)
--
To view, visit
https://gerrit.wikimedia.org/r/244049
To unsubscribe, visit
https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: merged
Gerrit-Change-Id: I5fe28b8d52bd88b6332697bf92fe0cf8def3b5ac
Gerrit-PatchSet: 1
Gerrit-Project: pywikibot/core
Gerrit-Branch: 2.0
Gerrit-Owner: John Vandenberg <jayvdb(a)gmail.com>
Gerrit-Reviewer: John Vandenberg <jayvdb(a)gmail.com>
Gerrit-Reviewer: Ladsgroup <ladsgroup(a)gmail.com>
Gerrit-Reviewer: XZise <CommodoreFabianus(a)gmx.de>
Gerrit-Reviewer: jenkins-bot <>