[Pywikipedia-l] SVN: [4898] trunk/pywikipedia/wikipedia.py
rotem at svn.wikimedia.org
rotem at svn.wikimedia.org
Wed Jan 16 12:08:39 UTC 2008
Revision: 4898
Author: rotem
Date: 2008-01-16 12:08:39 +0000 (Wed, 16 Jan 2008)
Log Message:
-----------
Use the output command, as page titles may have to be encoded first or something.
Modified Paths:
--------------
trunk/pywikipedia/wikipedia.py
Modified: trunk/pywikipedia/wikipedia.py
===================================================================
--- trunk/pywikipedia/wikipedia.py 2008-01-16 12:06:36 UTC (rev 4897)
+++ trunk/pywikipedia/wikipedia.py 2008-01-16 12:08:39 UTC (rev 4898)
@@ -53,7 +53,7 @@
showDiff(oldtext, newtext): Prints the differences between oldtext and
newtext on the screen
-
+
Wikitext manipulation functions: each of these takes a unicode string
containing wiki text as its first argument, and returns a modified version
of the text unless otherwise noted --
@@ -420,8 +420,8 @@
except NoSuchSite:
raise
except:
- print >>sys.stderr, "Exception in Page constructor"
- print >>sys.stderr, (
+ output(u"Exception in Page constructor")
+ output(
u"site=%s, title=%s, insite=%s, defaultNamespace=%i"
% (site, title, insite, defaultNamespace)
)
More information about the Pywikipedia-l
mailing list