Bugs item #3603994, was opened at 2013-02-10 02:14 Message generated for change (Tracker Item Submitted) 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: 5 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.
----------------------------------------------------------------------
You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=603138&aid=3603994...
pywikipedia-bugs@lists.wikimedia.org