Revision: 6499
Author:   nicdumz
Date:     2009-03-08 09:12:46 +0000 (Sun, 08 Mar 2009)

Log Message:
-----------
__repr__ must return a string, not an unicode object:
print {1: pywikibot.Page(pywikibot.Site(), u'?\195?\169')} was failing before 
this commit.

Modified Paths:
--------------
    branches/rewrite/pywikibot/page.py

Modified: branches/rewrite/pywikibot/page.py
===================================================================
--- branches/rewrite/pywikibot/page.py  2009-03-08 09:09:32 UTC (rev 6498)
+++ branches/rewrite/pywikibot/page.py  2009-03-08 09:12:46 UTC (rev 6499)
@@ -220,7 +220,7 @@
 
     def __repr__(self):
         """Return a more complete string representation."""
-        return u"%s(%s)" % (self.__class__.__name__,
+        return "%s(%s)" % (self.__class__.__name__,
                             self.title().encode(config.console_encoding))
 
     def __cmp__(self, other):



_______________________________________________
Pywikipedia-l mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/pywikipedia-l

Reply via email to