[Pywikipedia-svn] SVN: [7230] trunk/pywikipedia/maintenance/readtalk.py

alexsh at svn.wikimedia.org alexsh at svn.wikimedia.org
Sat Sep 12 20:02:08 UTC 2009


Revision: 7230
Author:   alexsh
Date:     2009-09-12 20:02:08 +0000 (Sat, 12 Sep 2009)

Log Message:
-----------
typo:site._messages is used by site.messages()

Modified Paths:
--------------
    trunk/pywikipedia/maintenance/readtalk.py

Modified: trunk/pywikipedia/maintenance/readtalk.py
===================================================================
--- trunk/pywikipedia/maintenance/readtalk.py	2009-09-12 16:22:12 UTC (rev 7229)
+++ trunk/pywikipedia/maintenance/readtalk.py	2009-09-12 20:02:08 UTC (rev 7230)
@@ -16,7 +16,6 @@
 
 def readtalk(lang, familyName, sysop = False):
     site = wikipedia.getSite(code=lang, fam=familyName)
-    index = site._userIndex(sysop)
     if sysop:
         user = config.sysopnames[familyName][lang]
     else:
@@ -24,7 +23,7 @@
     page = wikipedia.Page(site, user, defaultNamespace=3)
     if not site.loggedInAs(sysop):
         site.forceLogin()
-    if site._messages[index]:
+    if site.messages(sysop):
         wikipedia.output("cleanning up the account new message notice")
         pagetext = site.getUrl(site.get_address(u'User_Talk:' + user), sysop=sysop)
         del pagetext





More information about the Pywikipedia-svn mailing list