http://www.mediawiki.org/wiki/Special:Code/pywikipedia/10020
Revision: 10020 Author: binbot Date: 2012-03-15 11:23:42 +0000 (Thu, 15 Mar 2012) Log Message: ----------- Follow-up to r9920: better handling of excepted titles
Modified Paths: -------------- trunk/pywikipedia/replace.py
Modified: trunk/pywikipedia/replace.py =================================================================== --- trunk/pywikipedia/replace.py 2012-03-15 08:11:55 UTC (rev 10019) +++ trunk/pywikipedia/replace.py 2012-03-15 11:23:42 UTC (rev 10020) @@ -516,7 +516,7 @@ self.acceptall = True if choice == 'x': #May happen only if self.exctitles isn't None self.exctitles.write( - u"u'%s$',\n" % re.escape(page.title())) + u"ur'^%s$',\n" % re.escape(page.title())) self.exctitles.flush() self.exceptcounter += 1 if choice == 'y':