Originally from: http://sourceforge.net/p/pywikipediabot/patches/555/
Reported by: eranroz
Created on: 2012-07-03 18:35:29
Subject: Bugfix for optional caputring group
Original description:
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" \)
Version: unspecified
Severity: normal
See Also:
https://sourceforge.net/p/pywikipediabot/patches/555