Revision: 4100
Author: cosoleto
Date: 2007-08-24 04:53:17 +0000 (Fri, 24 Aug 2007)
Log Message:
-----------
Minor fix
Modified Paths:
--------------
trunk/pywikipedia/copyright.py
Modified: trunk/pywikipedia/copyright.py
===================================================================
--- trunk/pywikipedia/copyright.py 2007-08-23 16:00:23 UTC (rev 4099)
+++ trunk/pywikipedia/copyright.py 2007-08-24 04:53:17 UTC (rev 4100)
@@ -331,14 +331,14 @@
# Ignore text that contents comma separated list, only numbers,
# punctuation...
-def economize_query(text)
+def economize_query(text):
# Comma separated list
if text.count(', ') > 4:
l = len(text)
c = text.count(', ')
r = 100 * c / l
- if r >= comma_ratio
+ if r >= comma_ratio:
return True
# write_log("%d/%d/%d: %s\n" % (l,c,r,text), "copyright/skip" + str(r) + ".txt")
@@ -873,6 +873,7 @@
config.copyright_yahoo = check_config(config.copyright_yahoo, config.yahoo_appid, "Yahoo AppID")
config.copyright_google = check_config(config.copyright_google, config.google_key, "Google Web API license key")
+ config.copyright_msn = check_config(config.copyright_msn, config.msn_appid, "Live Search AppID")
# Read commandline parameters.
for arg in wikipedia.handleArgs():