[Pywikipedia-l] SVN: [6089] trunk/pywikipedia/djvutext.py

nicdumz at svn.wikimedia.org nicdumz at svn.wikimedia.org
Wed Nov 12 17:39:18 UTC 2008


Revision: 6089
Author:   nicdumz
Date:     2008-11-12 17:39:18 +0000 (Wed, 12 Nov 2008)

Log Message:
-----------
fixing outputs : Unicode conversions + missing parameter

Modified Paths:
--------------
    trunk/pywikipedia/djvutext.py

Modified: trunk/pywikipedia/djvutext.py
===================================================================
--- trunk/pywikipedia/djvutext.py	2008-11-12 11:19:15 UTC (rev 6088)
+++ trunk/pywikipedia/djvutext.py	2008-11-12 17:39:18 UTC (rev 6089)
@@ -222,7 +222,7 @@
         index_page = wikipedia.Page(site, index)
 
         if site.family.name != 'wikisource':
-	    raise wikipedia.PageNotFound("Found family '%s'; Wikisource required.")
+	    raise wikipedia.PageNotFound(u"Found family '%s'; Wikisource required." % site.family.name)
 
         if not index_page.exists() and index_page.namespace() == 0:
             index_namespace = wikipedia.Page(site, 'MediaWiki:Proofreadpage index namespace').get()
@@ -233,7 +233,7 @@
         if not index_page.exists():
             raise wikipedia.NoPage("Page '%s' does not exist" % index)
 
-        wikipedia.output("uploading text from %s to %s" % (djvu, index_page) )
+        wikipedia.output(u"uploading text from %s to %s" % (djvu, index_page) )
 
         bot = DjVuTextBot(djvu, index, pages)
 	if not bot.has_text():





More information about the Pywikipedia-l mailing list