Revision: 4190 Author: misza13 Date: 2007-09-03 17:57:38 +0000 (Mon, 03 Sep 2007)
Log Message: ----------- Fix redirectRegex - self.family.redirect[...] is already a list.
Modified Paths: -------------- trunk/pywikipedia/wikipedia.py
Modified: trunk/pywikipedia/wikipedia.py =================================================================== --- trunk/pywikipedia/wikipedia.py 2007-09-03 17:10:53 UTC (rev 4189) +++ trunk/pywikipedia/wikipedia.py 2007-09-03 17:57:38 UTC (rev 4190) @@ -3921,7 +3921,7 @@ group on the target title. """ try: - redirKeywords = [u'redirect'] + [self.family.redirect[self.lang]] + redirKeywords = [u'redirect'] + self.family.redirect[self.lang] redirKeywordsR = r'(?:' + '|'.join(redirKeywords) + ')' except KeyError: # no localized keyword for redirects