http://www.mediawiki.org/wiki/Special:Code/pywikipedia/9202
Revision: 9202 Author: xqt Date: 2011-04-29 04:59:18 +0000 (Fri, 29 Apr 2011) Log Message: ----------- fix for Page.site()
Modified Paths: -------------- trunk/pywikipedia/redirect.py
Modified: trunk/pywikipedia/redirect.py =================================================================== --- trunk/pywikipedia/redirect.py 2011-04-26 01:12:57 UTC (rev 9201) +++ trunk/pywikipedia/redirect.py 2011-04-29 04:59:18 UTC (rev 9202) @@ -511,8 +511,9 @@ redir_page.delete(reason, prompt = False) except pywikibot.NoUsername: if i18n.twhas_key( - targetPage.site.lang, sd_template) and \ - i18n.twhas_key(targetPage.site.lang, reason_broken): + targetPage.site().lang, sd_template) and \ + i18n.twhas_key(targetPage.site().lang, + reason_broken): pywikibot.output( u"No sysop in user-config.py, put page to speedy deletion.") content = redir_page.get(get_redirect=True)