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 = {}
--
To view, visit
https://gerrit.wikimedia.org/r/204872
To unsubscribe, visit
https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: merged
Gerrit-Change-Id: If00148c8b698a3facea5fc3252316bf3890ba241
Gerrit-PatchSet: 2
Gerrit-Project: pywikibot/core
Gerrit-Branch: master
Gerrit-Owner: Mpaa <mpaa.wiki(a)gmail.com>
Gerrit-Reviewer: John Vandenberg <jayvdb(a)gmail.com>
Gerrit-Reviewer: Ladsgroup <ladsgroup(a)gmail.com>
Gerrit-Reviewer: Merlijn van Deen <valhallasw(a)arctus.nl>
Gerrit-Reviewer: XZise <CommodoreFabianus(a)gmx.de>
Gerrit-Reviewer: jenkins-bot <>