[Pywikipedia-l] SVN: [6246] branches/rewrite/pywikibot/scripts/editarticle.py

russblau at svn.wikimedia.org russblau at svn.wikimedia.org
Sat Jan 10 22:03:51 UTC 2009


Revision: 6246
Author:   russblau
Date:     2009-01-10 22:03:50 +0000 (Sat, 10 Jan 2009)

Log Message:
-----------
normalize Page titles

Modified Paths:
--------------
    branches/rewrite/pywikibot/scripts/editarticle.py

Modified: branches/rewrite/pywikibot/scripts/editarticle.py
===================================================================
--- branches/rewrite/pywikibot/scripts/editarticle.py	2009-01-10 19:43:35 UTC (rev 6245)
+++ branches/rewrite/pywikibot/scripts/editarticle.py	2009-01-10 22:03:50 UTC (rev 6246)
@@ -152,7 +152,7 @@
         """Sets page and page title"""
         site = pywikibot.getSite()
         pageTitle = self.options.page or pywikibot.input(u"Page to edit:")
-        self.page = pywikibot.Page(site, pageTitle)
+        self.page = pywikibot.Page(pywikibot.Link(pageTitle, site))
         if not self.options.edit_redirect and self.page.isRedirectPage():
             self.page = self.page.getRedirectTarget()
 





More information about the Pywikipedia-l mailing list