Patches item #3539859, was opened at 2012-07-03 11:35
Message generated for change (Comment added) made by xqt
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603140&aid=353985…
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: None
Group: None
Status: Open
Resolution: None
Priority: 5
Private: No
Submitted By: Eranroz (eranroz)
Assigned to: Nobody/Anonymous (nobody)
Summary: Bugfix for optional caputring group
Initial Comment:
Patch for pywikibot/textlib.py for the replace function (replaceExcept) for supporting for
empty/optional capturing groups.
This is a bugfix for a crash that occur when using replace.py with a regex containing
optional capturing group (eg AAA in this regex "bla(AAA)?bla" )
----------------------------------------------------------------------
Comment By: xqt (xqt)
Date: 2012-07-03 21:26
Message:
I don't understand this bug. What is the traceback before this patch is
implemented. And what should that replaceexcept() do in your special case
Could you give me a full example. You may exclude this group by
"bla(?:AAA)?bla"; would this help?
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603140&aid=353985…