jenkins-bot has submitted this change and it was merged.
Change subject: remove deprecate_arg for Page and ImagePage ......................................................................
remove deprecate_arg for Page and ImagePage
remove "savetitle" for Page.title() remove "insite" for ImagePage.__init__() and mark it as deprecated
Change-Id: I2babd3db634a62af5f68636962a8acab3e16b1d9 --- M pywikibot/page.py 1 file changed, 3 insertions(+), 2 deletions(-)
Approvals: Xqt: Looks good to me, approved Pyfisch: Looks good to me, but someone else must approve jenkins-bot: Verified
diff --git a/pywikibot/page.py b/pywikibot/page.py index f337482..e1e3e4c 100644 --- a/pywikibot/page.py +++ b/pywikibot/page.py @@ -125,7 +125,7 @@
@deprecate_arg("decode", None) @deprecate_arg("savetitle", "asUrl") - def title(self, underscore=False, savetitle=False, withNamespace=True, + def title(self, underscore=False, withNamespace=True, withSection=True, asUrl=False, asLink=False, allowInterwiki=True, forceInterwiki=False, textlink=False, as_filename=False): @@ -1607,7 +1607,8 @@ usingPages : Iterate Pages on which the image is displayed.
""" - def __init__(self, source, title=u"", insite=None): + @deprecate_arg("insite", None) + def __init__(self, source, title=u""): Page.__init__(self, source, title, 6) if self.namespace() != 6: raise ValueError(u"'%s' is not in the image namespace!" % title)
pywikibot-commits@lists.wikimedia.org