[Pywikipedia-l] SVN: [6074] trunk/pywikipedia/imagerecat.py

multichill at svn.wikimedia.org multichill at svn.wikimedia.org
Thu Nov 6 21:29:31 UTC 2008


Revision: 6074
Author:   multichill
Date:     2008-11-06 21:29:30 +0000 (Thu, 06 Nov 2008)

Log Message:
-----------
Remove underscores in galleries.

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

Modified: trunk/pywikipedia/imagerecat.py
===================================================================
--- trunk/pywikipedia/imagerecat.py	2008-11-06 20:53:12 UTC (rev 6073)
+++ trunk/pywikipedia/imagerecat.py	2008-11-06 21:29:30 UTC (rev 6074)
@@ -289,7 +289,7 @@
     
     galleryCounter = 1
     for gallery in galleries:
-        result = result + u'|gallery' + str(galleryCounter) + u'=' + gallery + u'\n'
+        result = result + u'|gallery' + str(galleryCounter) + u'=' + gallery.replace('_', ' ') + u'\n'
         galleryCounter = galleryCounter + 1
 
     result = result + u'}}\n'





More information about the Pywikipedia-l mailing list