Revision: 6600 Author: cosoleto Date: 2009-04-12 12:03:56 +0000 (Sun, 12 Apr 2009)
Log Message: ----------- Removed a workaround for the Live Search words number problem, useless now and in the future.
Modified Paths: -------------- trunk/pywikipedia/copyright.py
Modified: trunk/pywikipedia/copyright.py =================================================================== --- trunk/pywikipedia/copyright.py 2009-04-12 10:21:04 UTC (rev 6599) +++ trunk/pywikipedia/copyright.py 2009-04-12 12:03:56 UTC (rev 6600) @@ -1191,11 +1191,7 @@
excl_list = exclusion_list()
-if number_of_words > 22: - if not config.copyright_google and not config.copyright_yahoo and config.copyright_msn: - warn("'number_of_words' variable set to 22 as Live Search requires a lower value of %s" % number_of_words, prefix = 'Warning') - number_of_words = 22 - elif config.copyright_msn: +if number_of_words > 22 and config.copyright_msn: warn("Live Search requires a lower value for 'number_of_words' variable " "(current value is %d, a good value may be 22)." % (number_of_words), prefix = 'Warning')
pywikipedia-l@lists.wikimedia.org