jenkins-bot has submitted this change and it was merged.
Change subject: [fix] Fix spelling mistake
......................................................................
[fix] Fix spelling mistake
Also shorten assignments.
Change-Id: I45aaaac6af46948a4d60b03a7cf6b53fef5b40f1
---
M scripts/checkimages.py
1 file changed, 4 insertions(+), 9 deletions(-)
Approvals:
John Vandenberg: Looks good to me, approved
jenkins-bot: Verified
diff --git a/scripts/checkimages.py b/scripts/checkimages.py
index 213ab96..8c24589 100755
--- a/scripts/checkimages.py
+++ b/scripts/checkimages.py
@@ -1057,14 +1057,9 @@
def report_image(self, image_to_report, rep_page=None, com=None,
rep_text=None, addings=True):
"""Report the files to the report page when
needed."""
- if not rep_page:
- rep_page = self.rep_page
-
- if not com:
- com =
self.com
-
- if not rep_text:
- rep_text = self.rep_text
+ rep_page = rep_page or self.rep_page
+ com = com or
self.com
+ rep_text = rep_text or self.rep_text
if addings:
# Adding the name of the image in the report if not done already
@@ -1100,7 +1095,7 @@
u"The log page (%s) is full! Please delete the old files "
u" reported. Skip!" % another_page.title())
# Don't report, but continue with the check
- # (we don't now if this is the first time we check this file
+ # (we don't know if this is the first time we check this file
# or not)
else:
# Adding the log
--
To view, visit
https://gerrit.wikimedia.org/r/281597
To unsubscribe, visit
https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: merged
Gerrit-Change-Id: I45aaaac6af46948a4d60b03a7cf6b53fef5b40f1
Gerrit-PatchSet: 1
Gerrit-Project: pywikibot/core
Gerrit-Branch: master
Gerrit-Owner: Xqt <info(a)gno.de>
Gerrit-Reviewer: John Vandenberg <jayvdb(a)gmail.com>
Gerrit-Reviewer: jenkins-bot <>