jenkins-bot submitted this change.
[IMPR] Use min buildin instead of value comparison
Change-Id: Ibeafad4def6af42b5374600740c93f1ca083a086
---
M scripts/checkimages.py
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/scripts/checkimages.py b/scripts/checkimages.py
index 08cac8a..645b25e 100755
--- a/scripts/checkimages.py
+++ b/scripts/checkimages.py
@@ -1293,8 +1293,8 @@
if skip_number == 0:
pywikibot.output('\t\t>> No files to skip...<<')
return False
- if skip_number > limit:
- skip_number = limit
+
+ skip_number = min(skip_number, limit)
# Print a starting message only if no images has been skipped
if not self.skip_list:
pywikibot.output(
To view, visit change 743368. To unsubscribe, or for help writing mail filters, visit settings.