Revision: 6997
Author: nicdumz
Date: 2009-06-25 14:32:37 +0000 (Thu, 25 Jun 2009)
Log Message:
-----------
second occurence of 'named' should be 'numbered'
Modified Paths:
--------------
trunk/pywikipedia/wikipedia.py
Modified: trunk/pywikipedia/wikipedia.py
===================================================================
--- trunk/pywikipedia/wikipedia.py 2009-06-25 01:11:44 UTC (rev 6996)
+++ trunk/pywikipedia/wikipedia.py 2009-06-25 14:32:37 UTC (rev 6997)
@@ -5925,7 +5925,7 @@
def replacenumbered(match):
return self.namespace(int(match.group(1)))
- return named.sub(replacenumbered, wikitext)
+ return numbered.sub(replacenumbered, wikitext)
# The following methods are for convenience, so that you can access
# methods of the Family class easier.
Revision: 6992
Author: nicdumz
Date: 2009-06-22 15:48:44 +0000 (Mon, 22 Jun 2009)
Log Message:
-----------
title is undefined, use self._text instead
Modified Paths:
--------------
branches/rewrite/pywikibot/page.py
Modified: branches/rewrite/pywikibot/page.py
===================================================================
--- branches/rewrite/pywikibot/page.py 2009-06-22 15:47:57 UTC (rev 6991)
+++ branches/rewrite/pywikibot/page.py 2009-06-22 15:48:44 UTC (rev 6992)
@@ -1945,7 +1945,7 @@
raise pywikibot.Error("""\
%s is not a local page on %s, and the %s family is
not supported by PyWikiBot!"""
- % (title, self._site(), familyName))
+ % (self._text, self._site(), familyName))
# Redundant interwiki prefix to the local wiki
if newsite == self._site:
Revision: 6990
Author: nicdumz
Date: 2009-06-22 15:30:01 +0000 (Mon, 22 Jun 2009)
Log Message:
-----------
coding style; NoPage -> pywikibot.NoPage
Modified Paths:
--------------
branches/rewrite/pywikibot/page.py
Modified: branches/rewrite/pywikibot/page.py
===================================================================
--- branches/rewrite/pywikibot/page.py 2009-06-22 15:26:32 UTC (rev 6989)
+++ branches/rewrite/pywikibot/page.py 2009-06-22 15:30:01 UTC (rev 6990)
@@ -304,7 +304,7 @@
# * Deleting _redirtarget, that info is now obsolete.
for attr in ['_redirtarget', '_getexception', '_revid']:
if hasattr(self, attr):
- delattr(self,attr)
+ delattr(self, attr)
try:
self._getInternals(sysop)
except pywikibot.IsRedirectPage:
@@ -535,7 +535,7 @@
for link in disambigpages.linkedPages()
if link.namespace() == 10
]
- except NoPage:
+ except pywikibot.NoPage:
self.site()._disambigtemplates = ['Disambig']
for t in self.templates():
if t.title(withNamespace=False) in self.site()._disambigtemplates:
@@ -2231,7 +2231,7 @@
"""
# create a list of all possible encodings for both hint sites
encList = [site.encoding()] + list(site.encodings())
- if site2 and site2 <> site:
+ if site2 and site2 != site:
encList.append(site2.encoding())
encList += list(site2.encodings())
firstException = None