jenkins-bot has submitted this change and it was merged.
Change subject: config2.py: Support unicode args (another case) ......................................................................
config2.py: Support unicode args (another case)
Same as 4ca47e10ab243cd72cde01c4d2388fc3e46035d6.
Bug: T95803 Change-Id: If00148c8b698a3facea5fc3252316bf3890ba241 --- M pywikibot/config2.py 1 file changed, 1 insertion(+), 1 deletion(-)
Approvals: John Vandenberg: Looks good to me, approved jenkins-bot: Verified
diff --git a/pywikibot/config2.py b/pywikibot/config2.py index db23c5e..ecbc0bb 100644 --- a/pywikibot/config2.py +++ b/pywikibot/config2.py @@ -307,7 +307,7 @@ base_dir = _base_dir
for arg in sys.argv[1:]: - if arg.startswith("-verbose") or arg == "-v": + if arg.startswith(str('-verbose')) or arg == str('-v'): print("The base directory is %s" % base_dir) break family_files = {}
pywikibot-commits@lists.wikimedia.org