Revision: 6178
Author:   purodha
Date:     2008-12-21 14:34:34 +0000 (Sun, 21 Dec 2008)

Log Message:
-----------
Allow underlines instead of spaces in category titles on command line,
but do not store them in the wiki.

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

Modified: trunk/pywikipedia/category.py
===================================================================
--- trunk/pywikipedia/category.py       2008-12-21 13:21:02 UTC (rev 6177)
+++ trunk/pywikipedia/category.py       2008-12-21 14:34:34 UTC (rev 6178)
@@ -918,10 +918,10 @@
             elif arg == '-rebuild':
                 catDB.rebuild()
             elif arg.startswith('-from:'):
-                oldCatTitle = arg[len('-from:'):]
+                oldCatTitle = arg[len('-from:'):].replace('_', ' ')
                 fromGiven = True
             elif arg.startswith('-to:'):
-                newCatTitle = arg[len('-to:'):]
+                newCatTitle = arg[len('-to:'):].replace('_', ' ')
                 toGiven = True
             elif arg == '-batch':
                 batchMode = True



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

Reply via email to