jenkins-bot has submitted this change. (
https://gerrit.wikimedia.org/r/c/pywikibot/core/+/656581 )
Change subject: [bugfix] add_text: str.join() expects an iterable not multiple
args
......................................................................
[bugfix] add_text: str.join() expects an iterable not multiple args
Bug: T272223
Change-Id: Icdb85020c2d2dd38f0c18833f7b2f6009a0b511b
---
M scripts/add_text.py
1 file changed, 1 insertion(+), 1 deletion(-)
Approvals:
JJMC89: Looks good to me, approved
jenkins-bot: Verified
diff --git a/scripts/add_text.py b/scripts/add_text.py
index 895d208..7b78675 100755
--- a/scripts/add_text.py
+++ b/scripts/add_text.py
@@ -309,7 +309,7 @@
elif option == '-excepturl':
regexSkipUrl = value or pywikibot.input('What text should I skip?')
elif option == '-except':
- new_arg = ''.join('-grepnot', sep, value)
+ new_arg = ''.join(['-grepnot', sep, value])
issue_deprecation_warning(arg, new_arg,
2, ArgumentDeprecationWarning,
since='20201224')
--
To view, visit https://gerrit.wikimedia.org/r/c/pywikibot/core/+/656581
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: Icdb85020c2d2dd38f0c18833f7b2f6009a0b511b
Gerrit-Change-Number: 656581
Gerrit-PatchSet: 2
Gerrit-Owner: Xqt <[email protected]>
Gerrit-Reviewer: D3r1ck01 <[email protected]>
Gerrit-Reviewer: JJMC89 <[email protected]>
Gerrit-Reviewer: jenkins-bot
Gerrit-MessageType: merged
_______________________________________________
Pywikibot-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/pywikibot-commits