Revision: 4449 Author: cosoleto Date: 2007-10-16 09:53:55 +0000 (Tue, 16 Oct 2007)
Log Message: ----------- bugfix
Modified Paths: -------------- trunk/pywikipedia/copyright.py
Modified: trunk/pywikipedia/copyright.py =================================================================== --- trunk/pywikipedia/copyright.py 2007-10-14 23:12:15 UTC (rev 4448) +++ trunk/pywikipedia/copyright.py 2007-10-16 09:53:55 UTC (rev 4449) @@ -822,10 +822,11 @@ if cache: if cache_url: if engine == 'google': - comment.append('[http://www.google.com/search?sourceid=navclient&q=cache:%s Google cache]' % short_url(add_item)) + comment.append('[http://www.google.com/search?sourceid=navclient&q=cache:%s Google cache]' % urllib2.quote(short_url(add_item))) elif engine == 'yahoo': #cache = False - comment.append('[%s Yahoo cache]' % re.sub('&appid=[^&]*','', urllib2.unquote(cache_url))) + #comment.append('[%s Yahoo cache]' % re.sub('&appid=[^&]*','', urllib2.unquote(cache_url))) + comment.append("''Yahoo cache''") elif engine == 'msn': comment.append('[%s Live cache]' % re.sub('&lang=[^&]*','', cache_url)) else: