Bugs item #3603994, was opened at 2013-02-10 02:14 Message generated for change (Comment added) made by basilicofresco You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=603138&aid=3603994...
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: Open Resolution: None
Priority: 6
Private: No Submitted By: Davide Bolsi (basilicofresco) Assigned to: Nobody/Anonymous (nobody) Summary: template exclusion in replaceExcept stucks
Initial Comment: The "template" exclusion in "replaceExcept" stucks the script when used on a page that contains not closed template brackets: {{... eof.
For example this line
text = pywikibot.replaceExcept(text, u" +", ur" ", ['template'])
used on this page
http://commons.wikimedia.org/w/index.php?title=User:Basilicofresco/test2&...
halts indefinitely the execution script.
----------------------------------------------------------------------
Comment By: Davide Bolsi (basilicofresco)
Date: 2013-02-18 11:49
Message: This is not a minor issue. For example on the page "Middle Ages" on the english Wikipedia, the replace.py script fails miserably because within the section "Crusades" there is a "efn" template not closed.
http://en.wikipedia.org/w/index.php?title=Middle_Ages&oldid=538899472
----------------------------------------------------------------------
You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=603138&aid=3603994...