[Pywikipedia-l] SVN: [5399] trunk/pywikipedia/wikipedia.py

nicdumz at svn.wikimedia.org nicdumz at svn.wikimedia.org
Sun May 18 15:32:13 UTC 2008


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





More information about the Pywikipedia-l mailing list