John Vandenberg has uploaded a new change for review.
https://gerrit.wikimedia.org/r/257848
Change subject: Fix limit argument parser
......................................................................
Fix limit argument parser
'-limit' was parsed as including a value instead of prompting for
a value, causing a ValueError.
Change-Id: Iea57e1bb8cc5823cc01420636d04752a5fb2f3f7
---
M scripts/checkimages.py
1 file changed, 3 insertions(+), 1 deletion(-)
git pull ssh://gerrit.wikimedia.org:29418/pywikibot/core
refs/changes/48/257848/1
diff --git a/scripts/checkimages.py b/scripts/checkimages.py
index 762f6d6..92fba62 100755
--- a/scripts/checkimages.py
+++ b/scripts/checkimages.py
@@ -1532,6 +1532,7 @@
# Here begins the check block.
if brackets and license_found:
# It works also without this... but i want only to be sure ^^
+ brackets = False
return True
elif delete:
pywikibot.output(u"%s is not a file!" % self.imageName)
@@ -1541,6 +1542,7 @@
notification = din % self.imageName
head = dih
self.report(canctext, self.imageName, notification, head)
+ delete = False
return True
elif self.imageCheckText in nothing:
pywikibot.output(
@@ -1595,7 +1597,7 @@
# Here below there are the parameters.
for arg in pywikibot.handle_args(args):
if arg.startswith('-limit'):
- if len(arg) == 7:
+ if len(arg) == 6:
limit = int(pywikibot.input(
u'How many files do you want to check?'))
else:
--
To view, visit https://gerrit.wikimedia.org/r/257848
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: newchange
Gerrit-Change-Id: Iea57e1bb8cc5823cc01420636d04752a5fb2f3f7
Gerrit-PatchSet: 1
Gerrit-Project: pywikibot/core
Gerrit-Branch: master
Gerrit-Owner: John Vandenberg <[email protected]>
_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits