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)
pywikibot-commits@lists.wikimedia.org