jenkins-bot submitted this change.

View Change

Approvals: Matěj Suchánek: Looks good to me, approved jenkins-bot: Verified
[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.

Gerrit-Project: pywikibot/core
Gerrit-Branch: master
Gerrit-Change-Id: I6d373f7e627fbbd10a8e1fc39c93cc64bb1e025a
Gerrit-Change-Number: 616226
Gerrit-PatchSet: 1
Gerrit-Owner: Xqt <info@gno.de>
Gerrit-Reviewer: Matěj Suchánek <matejsuchanek97@gmail.com>
Gerrit-Reviewer: jenkins-bot
Gerrit-MessageType: merged