jenkins-bot has submitted this change and it was merged. ( 
https://gerrit.wikimedia.org/r/413251 )

Change subject: pagegenerators.py: -linter options fails
......................................................................

pagegenerators.py: -linter options fails

Fix parsing of argument in handleArg()
-linter should select all categories instead gives error.

Bug: T187945
Change-Id: I462ef0c7f32a1a519f9d7f394372aaa6e93d3bf4
---
M pywikibot/pagegenerators.py
1 file changed, 2 insertions(+), 1 deletion(-)

Approvals:
  Xqt: Looks good to me, approved
  jenkins-bot: Verified



diff --git a/pywikibot/pagegenerators.py b/pywikibot/pagegenerators.py
index ab4ed51..bbad63c 100644
--- a/pywikibot/pagegenerators.py
+++ b/pywikibot/pagegenerators.py
@@ -14,7 +14,7 @@
 &params;
 """
 #
-# (C) Pywikibot team, 2008-2017
+# (C) Pywikibot team, 2008-2018
 #
 # Distributed under the terms of the MIT license.
 #
@@ -719,6 +719,7 @@
             cats = self.site.siteinfo.get('linter')  # Get linter categories.
             valid_cats = [c for _list in cats.values() for c in _list]

+            value = '' if value is None else value
             cat, sep, lint_from = value.partition('/')
             if not lint_from:
                 lint_from = None

--
To view, visit https://gerrit.wikimedia.org/r/413251
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-Project: pywikibot/core
Gerrit-Branch: master
Gerrit-MessageType: merged
Gerrit-Change-Id: I462ef0c7f32a1a519f9d7f394372aaa6e93d3bf4
Gerrit-Change-Number: 413251
Gerrit-PatchSet: 2
Gerrit-Owner: Mpaa <mpaa.w...@gmail.com>
Gerrit-Reviewer: John Vandenberg <jay...@gmail.com>
Gerrit-Reviewer: Xqt <i...@gno.de>
Gerrit-Reviewer: Zoranzoki21 <zorandori4...@gmail.com>
Gerrit-Reviewer: jenkins-bot <>
_______________________________________________
Pywikibot-commits mailing list
Pywikibot-commits@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/pywikibot-commits

Reply via email to