jenkins-bot submitted this change.
[cleanup] as announced already remove some unported compat parameters
- remove decode parameter of Page.title()
- remove uploadByUrl and debug parameter used by UploadRobot
Change-Id: I6d373f7e627fbbd10a8e1fc39c93cc64bb1e025a
---
M pywikibot/page/__init__.py
M pywikibot/specialbots/_upload.py
2 files changed, 3 insertions(+), 4 deletions(-)
diff --git a/pywikibot/page/__init__.py b/pywikibot/page/__init__.py
index ff9812f..b17e20e 100644
--- a/pywikibot/page/__init__.py
+++ b/pywikibot/page/__init__.py
@@ -279,7 +279,7 @@
return self._pageid
@deprecated_args(
- decode=True, savetitle='as_url', withNamespace='with_ns',
+ savetitle='as_url', withNamespace='with_ns',
withSection='with_section', forceInterwiki='force_interwiki',
asUrl='as_url', asLink='as_link', allowInterwiki='allow_interwiki')
def title(self, *, underscore=False, with_ns=True,
diff --git a/pywikibot/specialbots/_upload.py b/pywikibot/specialbots/_upload.py
index 56ff407..e71b3fd 100644
--- a/pywikibot/specialbots/_upload.py
+++ b/pywikibot/specialbots/_upload.py
@@ -37,8 +37,8 @@
"""Upload bot."""
- @deprecated_args(uploadByUrl=True, urlEncoding='url_encoding',
- useFilename='use_filename', keepFilename='keep_filename',
+ @deprecated_args(urlEncoding='url_encoding', useFilename='use_filename',
+ keepFilename='keep_filename',
verifyDescription='verify_description',
ignoreWarning='ignore_warning', targetSite='target_site')
def __init__(self, url, url_encoding=None, description='',
@@ -393,7 +393,6 @@
"""Upload image."""
return self.upload_file(self.url)
- @deprecated_args(debug=True)
def upload_file(self, file_url, _file_key=None, _offset=0):
"""
Upload the image at file_url to the target wiki.
To view, visit change 616226. To unsubscribe, or for help writing mail filters, visit settings.