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

rotem at svn.wikimedia.org rotem at svn.wikimedia.org
Tue Dec 18 17:44:03 UTC 2007


Revision: 4731
Author:   rotem
Date:     2007-12-18 17:43:58 +0000 (Tue, 18 Dec 2007)

Log Message:
-----------
Code style.

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

Modified: trunk/pywikipedia/wikipedia.py
===================================================================
--- trunk/pywikipedia/wikipedia.py	2007-12-18 17:36:07 UTC (rev 4730)
+++ trunk/pywikipedia/wikipedia.py	2007-12-18 17:43:58 UTC (rev 4731)
@@ -5345,7 +5345,7 @@
     try:
         if decoder:
             text = unicode(text, decoder)
-        elif type(text) != type(u''):
+        elif type(text) is not unicode:
             if verbose:
                 print "DBG> BUG: Non-unicode passed to wikipedia.output without decoder!"
                 print traceback.print_stack()





More information about the Pywikipedia-l mailing list