Revision: 7665 Author: alexsh Date: 2009-11-17 12:24:54 +0000 (Tue, 17 Nov 2009)
Log Message: ----------- fix MyURLopener bug on ImagePage().getFileMd5Sum()
Modified Paths: -------------- trunk/pywikipedia/wikipedia.py
Modified: trunk/pywikipedia/wikipedia.py =================================================================== --- trunk/pywikipedia/wikipedia.py 2009-11-17 09:58:20 UTC (rev 7664) +++ trunk/pywikipedia/wikipedia.py 2009-11-17 12:24:54 UTC (rev 7665) @@ -3504,8 +3504,7 @@ # (see bug #1795683). def getFileMd5Sum(self): """Return image file's MD5 checksum.""" - uo = MyURLopener() - f = uo.open(self.fileUrl()) + f = MyURLopener.open(self.fileUrl()) return md5(f.read()).hexdigest()
def getFileVersionHistory(self):