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=360399…
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: replace.py stucks: template exclusion is
broken
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&am…
halts indefinitely the execution script.
----------------------------------------------------------------------
Comment By: Davide Bolsi (basilicofresco)
Date:
2013-03-16 00:09
Message:
For example this simple test replacement stucks indefinitely:
replace.py -page:"File:Serif and sans-serif 01.png" -lang:commons
-family:commons -exceptinsidetag:template "[" ""
This happens also with the dumpfile.
----------------------------------------------------------------------
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=360399…