Revision: 4357 Author: cosoleto Date: 2007-09-24 18:23:48 +0000 (Mon, 24 Sep 2007)
Log Message: ----------- fix, google cache
Modified Paths: -------------- trunk/pywikipedia/copyright.py
Modified: trunk/pywikipedia/copyright.py =================================================================== --- trunk/pywikipedia/copyright.py 2007-09-24 17:55:32 UTC (rev 4356) +++ trunk/pywikipedia/copyright.py 2007-09-24 18:23:48 UTC (rev 4357) @@ -727,13 +727,13 @@ if length > 0: comment.append("%d %s" % (length, unit))
- if cache: - if engine == 'google': - comment.append('[http://www.google.com/search?sourceid=navclient&q=cache:%s google cache]' % add_item[7:]) - elif engine == 'yahoo': - cache = False - elif engine == 'msn': - cache = False + if cache: + if engine == 'google': + comment.append('[http://www.google.com/search?sourceid=navclient&q=cache:%s google cache]' % add_item[7:]) + elif engine == 'yahoo': + cache = False + elif engine == 'msn': + cache = False
for i in range(len(url)): if add_item in url[i]: