jenkins-bot has submitted this change and it was merged.
Change subject: Fix calling of getFilesFromAnHash, also pep8
......................................................................
Fix calling of getFilesFromAnHash, also pep8
Change-Id: I906d003dde9083cf18ccb443fca635b581992ba1
---
M pywikibot/site.py
1 file changed, 2 insertions(+), 2 deletions(-)
Approvals:
Xqt: Looks good to me, approved
jenkins-bot: Verified
diff --git a/pywikibot/site.py b/pywikibot/site.py
index b4357d6..c2889db 100644
--- a/pywikibot/site.py
+++ b/pywikibot/site.py
@@ -2947,14 +2947,14 @@
NOTE 2: it returns the image title WITHOUT the image namespace.
"""
- if hash_found == None: # If the hash is none return None and not continue
+ if hash_found is None: # If the hash is none return None and not continue
return None
return [image.title(withNamespace=False)
for image in self.allimages(sha1=hash_found)]
@deprecated('Site().getFilesFromAnHash')
def getImagesFromAnHash(self, hash_found=None):
- return self.getFilesFromAnHash(self, hash_found)
+ return self.getFilesFromAnHash(hash_found)
def upload(self, imagepage, source_filename=None, source_url=None,
--
To view, visit
https://gerrit.wikimedia.org/r/78165
To unsubscribe, visit
https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: merged
Gerrit-Change-Id: I906d003dde9083cf18ccb443fca635b581992ba1
Gerrit-PatchSet: 1
Gerrit-Project: pywikibot/core
Gerrit-Branch: master
Gerrit-Owner: Legoktm <legoktm.wikipedia(a)gmail.com>
Gerrit-Reviewer: Ladsgroup <ladsgroup(a)gmail.com>
Gerrit-Reviewer: Merlijn van Deen <valhallasw(a)arctus.nl>
Gerrit-Reviewer: Xqt <info(a)gno.de>
Gerrit-Reviewer: jenkins-bot