Revision: 7142 Author: alexsh Date: 2009-08-11 10:59:58 +0000 (Tue, 11 Aug 2009)
Log Message: ----------- ImagePage().fileUrl(): typy
Modified Paths: -------------- trunk/pywikipedia/wikipedia.py
Modified: trunk/pywikipedia/wikipedia.py =================================================================== --- trunk/pywikipedia/wikipedia.py 2009-08-11 10:53:06 UTC (rev 7141) +++ trunk/pywikipedia/wikipedia.py 2009-08-11 10:59:58 UTC (rev 7142) @@ -3081,7 +3081,8 @@ } imagedata = query.GetData(params, self.site(), encodeTitle = False) try: - return imagedata['query']['pages'].values()[0]['imageinfo'][0]['url'] + url = imagedata['query']['pages'].values()[0]['imageinfo'][0]['url'] + return url # urlR = re.compile(r'<div class="fullImageLink" id="file">.*?<a href="(?P<url>[^ ]+?)"(?! class="image")|<span class="dangerousLink"><a href="(?P<url2>.+?)"', re.DOTALL) # m = urlR.search(self.getImagePageHtml())