jenkins-bot has submitted this change. ( https://gerrit.wikimedia.org/r/c/pywikibot/core/+/685609 )
Change subject: [cleanup] Removal of unnecessary return statements ......................................................................
[cleanup] Removal of unnecessary return statements
These changes serve to comply with the Coding Convention Guidlines.
Change-Id: Ic500ca3c0a0233aa070a1fc3260e676f9d66f1bc --- M scripts/archive/imagecopy.py M scripts/archive/imagerecat.py 2 files changed, 0 insertions(+), 3 deletions(-)
Approvals: Xqt: Looks good to me, approved jenkins-bot: Verified
diff --git a/scripts/archive/imagecopy.py b/scripts/archive/imagecopy.py index 8dab194..5531c87 100755 --- a/scripts/archive/imagecopy.py +++ b/scripts/archive/imagecopy.py @@ -336,7 +336,6 @@ # it will be marked for deletion. if self.delete_after_done: self.imagePage.delete(moveSummary, False) - return
def fixAuthor(self, pageText): """Fix the author field in the information template.""" diff --git a/scripts/archive/imagerecat.py b/scripts/archive/imagerecat.py index 9b0476e..9f36048 100755 --- a/scripts/archive/imagerecat.py +++ b/scripts/archive/imagerecat.py @@ -37,7 +37,6 @@ 'User:Multichill/Countries') for country in countryPage.linkedPages(): countries.append(country.title(with_ns=False)) - return
def categorizeImages(generator, onlyUncat): @@ -164,7 +163,6 @@ pywikibot.showDiff(imagepage.text, newtext) imagepage.text = newtext imagepage.save(comment) - return
def main(*args):