jenkins-bot has submitted this change. (
https://gerrit.wikimedia.org/r/c/pywikibot/core/+/655195 )
Change subject: [cleanup] Remove deprecated handleArgs() function
......................................................................
[cleanup] Remove deprecated handleArgs() function
Change-Id: Iaa612333bfecb3760808e7185d3c10b9bfd88ca1
---
M pywikibot/__init__.py
M pywikibot/bot.py
M tests/ui_tests.py
3 files changed, 6 insertions(+), 15 deletions(-)
Approvals:
JJMC89: Looks good to me, approved
jenkins-bot: Verified
diff --git a/pywikibot/__init__.py b/pywikibot/__init__.py
index 47cdd73..08d50ef 100644
--- a/pywikibot/__init__.py
+++ b/pywikibot/__init__.py
@@ -1,6 +1,6 @@
"""The initialization file for the Pywikibot framework."""
#
-# (C) Pywikibot team, 2008-2020
+# (C) Pywikibot team, 2008-2021
#
# Distributed under the terms of the MIT license.
#
@@ -27,8 +27,6 @@
from pywikibot.bot import (
input, input_choice, input_yn, handle_args, show_help, ui,
calledModuleName, Bot, CurrentPageBot, WikidataBot,
- # the following are flagged as deprecated on usage
- handleArgs,
)
from pywikibot.bot_choice import (
QuitKeyboardInterrupt as _QuitKeyboardInterrupt,
@@ -73,7 +71,7 @@
'Category', 'CircularRedirect', 'Claim', 'config',
'Coordinate',
'CoordinateGlobeUnknownException', 'critical',
'CurrentPageBot', 'debug',
'EditConflict', 'error', 'Error', 'exception',
'FatalServerError',
- 'FilePage', 'handle_args', 'handleArgs',
'html2unicode', 'input',
+ 'FilePage', 'handle_args', 'html2unicode', 'input',
'input_choice', 'input_yn', 'InterwikiRedirectPage',
'InvalidTitle',
'IsNotRedirectPage', 'IsRedirectPage', 'ItemPage',
'Link', 'LockedNoPage',
'LockedPage', 'log', 'NoCreateError', 'NoMoveTarget',
'NoPage',
diff --git a/pywikibot/bot.py b/pywikibot/bot.py
index 779fe0b..204ed9b 100644
--- a/pywikibot/bot.py
+++ b/pywikibot/bot.py
@@ -53,7 +53,7 @@
used.
"""
#
-# (C) Pywikibot team, 2008-2020
+# (C) Pywikibot team, 2008-2021
#
# Distributed under the terms of the MIT license.
#
@@ -70,7 +70,7 @@
'Choice', 'StaticChoice', 'LinkChoice',
'AlwaysChoice',
'QuitKeyboardInterrupt',
'InteractiveReplace',
- 'calledModuleName', 'handle_args', 'handleArgs',
+ 'calledModuleName', 'handle_args',
'show_help', 'showHelp', 'suggest_help',
'writeToCommandLogFile', 'open_webbrowser',
'OptionHandler',
@@ -858,12 +858,6 @@
return non_global_args
-@deprecated('handle_args', since='20150409', future_warning=True)
-def handleArgs(*args): # pragma: no cover
- """DEPRECATED. Use handle_args()."""
- return handle_args(args)
-
-
def show_help(module_name=None, show_global=False):
"""Show help for the Bot."""
if not module_name:
diff --git a/tests/ui_tests.py b/tests/ui_tests.py
index 6f1ad1f..6d17093 100644
--- a/tests/ui_tests.py
+++ b/tests/ui_tests.py
@@ -1,7 +1,6 @@
-# -*- coding: utf-8 -*-
"""Tests for the user interface."""
#
-# (C) Pywikibot team, 2008-2020
+# (C) Pywikibot team, 2008-2021
#
# Distributed under the terms of the MIT license.
#
@@ -655,7 +654,7 @@
'python -c \"'
'import subprocess, pywikibot; '
"subprocess.run('cls', shell=True); "
- "pywikibot.output('\\n'.join(pywikibot.handleArgs()))\"
"
+ "pywikibot.output('\\n'.join(pywikibot.handle_args()))\"
"
'Alpha Bετα Гамма دلتا\n')
lines = []
--
To view, visit
https://gerrit.wikimedia.org/r/c/pywikibot/core/+/655195
To unsubscribe, or for help writing mail filters, visit
https://gerrit.wikimedia.org/r/settings
Gerrit-Project: pywikibot/core
Gerrit-Branch: master
Gerrit-Change-Id: Iaa612333bfecb3760808e7185d3c10b9bfd88ca1
Gerrit-Change-Number: 655195
Gerrit-PatchSet: 3
Gerrit-Owner: Xqt <info(a)gno.de>
Gerrit-Reviewer: JJMC89 <JJMC89.Wikimedia(a)gmail.com>
Gerrit-Reviewer: jenkins-bot
Gerrit-CC: DannyS712 <DannyS712.enwiki(a)gmail.com>
Gerrit-MessageType: merged