Revision: 5399 Author: nicdumz Date: 2008-05-18 15:32:13 +0000 (Sun, 18 May 2008)
Log Message: ----------- Less verbosity for getUrl. Anyway it is not always fetching HTML content: this warning does not make much sense when fetching XML...
Modified Paths: -------------- trunk/pywikipedia/wikipedia.py
Modified: trunk/pywikipedia/wikipedia.py =================================================================== --- trunk/pywikipedia/wikipedia.py 2008-05-18 14:51:39 UTC (rev 5398) +++ trunk/pywikipedia/wikipedia.py 2008-05-18 15:32:13 UTC (rev 5399) @@ -4287,7 +4287,8 @@ if m: charset = m.group(1) else: - output(u"WARNING: No character set found.") + if verbose: + output(u"WARNING: No character set found.") # UTF-8 as default charset = 'utf-8' # Check if this is the charset we expected
pywikipedia-l@lists.wikimedia.org