jenkins-bot has submitted this change and it was merged.
Change subject: Document AutoFamily constructor ......................................................................
Document AutoFamily constructor
Also deprecated the site argument.
Continues 51a5a68c36.
Change-Id: I5fe28b8d52bd88b6332697bf92fe0cf8def3b5ac --- M pywikibot/family.py 1 file changed, 9 insertions(+), 1 deletion(-)
Approvals: Xqt: Looks good to me, approved jenkins-bot: Verified
diff --git a/pywikibot/family.py b/pywikibot/family.py index 43aed3f..b4c5850 100644 --- a/pywikibot/family.py +++ b/pywikibot/family.py @@ -1571,8 +1571,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 + """ self.name = name self.url = urlparse.urlparse(url) self.domain = self.url.netloc
pywikibot-commits@lists.wikimedia.org