Bugs item #3603994, was opened at 2013-02-10 02:14
Message generated for change (Settings changed) made by xqt
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=3603994&group_id=93107

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: 6
Private: No
Submitted By: Davide Bolsi (basilicofresco)
>Assigned to: xqt (xqt)
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&oldid=90281970

halts indefinitely the execution script.

----------------------------------------------------------------------

>Comment By: xqt (xqt)
Date: 2013-04-03 22:56

Message:
should be fixed with r11333

----------------------------------------------------------------------

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=3603994&group_id=93107

_______________________________________________
Pywikipedia-bugs mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/pywikipedia-bugs

Reply via email to