Bugs item #2819291, was opened at 2009-07-09 15:31
Message generated for change (Comment added) made by xqt
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=281929…
Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: General
Group: None
Status: Closed
Resolution: None
Priority: 7
Private: No
Submitted By: NeuCeu (neuceu)
Assigned to: xqt (xqt)
Summary:
'template' exception in wikipedia.replaceExcept() isn't good
Initial Comment:
Version:
Pywikipedia [http] trunk/pywikipedia (r7032, Jul 08 2009, 03:18:37)
Python 2.6.2 (r262:71605, Apr 14 2009, 22:40:02) [MSC v.1500 32 bit (Intel)]
Because of the 'template' exception, large part of a page text can be ignored.
How to reproduce : run replace.py on fr.wiki with page "Slayers" and exeption
'template'
python replace.py -exceptinsidetag:template -regex "([Aa])ncêtre"
"\1ncêetre" -namespace:0 -page:"Slayers"
It should normally find something to replace.
Possible fix : If I remove (?s) in front of the 'template' regex, it works. IMHO I
would replace the .* by [^}]*
----------------------------------------------------------------------
Comment By: xqt (xqt)
Date: 2013-04-03 22:54
Message:
fixed in r11333
----------------------------------------------------------------------
Comment By: Bináris (binbot)
Date: 2012-01-30 11:14
Message:
See also
http://lists.wikimedia.org/pipermail/pywikipedia-l/2012-January/thread.html…
([Pywikipedia-l] Template parsing code thread)
----------------------------------------------------------------------
Comment By: xqt (xqt)
Date: 2011-05-12 14:24
Message:
see also bug #3158761
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=281929…