Revision: 4549 Author: leogregianin Date: 2007-11-15 10:44:11 +0000 (Thu, 15 Nov 2007)
Log Message: ----------- fixed bug 1810765 "removeImage() BUG" (not tested)
Modified Paths: -------------- trunk/pywikipedia/wikipedia.py
Modified: trunk/pywikipedia/wikipedia.py =================================================================== --- trunk/pywikipedia/wikipedia.py 2007-11-15 10:37:53 UTC (rev 4548) +++ trunk/pywikipedia/wikipedia.py 2007-11-15 10:44:11 UTC (rev 4549) @@ -2182,7 +2182,7 @@ # All previous steps did not work, so the image is # likely embedded in a complicated template. # Note: this regular expression can't handle nested templates. - templateR = re.compile(ur'(?s){{(?<contents>.*?}}') + templateR = re.compile(ur'(?s){{(?P<contents>.*?}}') fileReferenceR = re.compile(u'%s(?P<filename>(?:%s)?)' % (namespacePattern, imagePattern))
def template_replacer(match):
pywikipedia-l@lists.wikimedia.org