Bugs item #2877280, was opened at 2009-10-12 22:46 Message generated for change (Comment added) made by xqt You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=603138&aid=2877280...
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: other Group: None
Status: Closed Resolution: Invalid
Priority: 5 Private: No Submitted By: masti (masti01)
Assigned to: xqt (xqt)
Summary: replace.py does not accept 2arguments with regexp
Initial Comment: python pywikipedia/replace.py -regexp "J.Giżycki" "[[Jerzy Giżycki (krytyk filmowy)|J.Giżycki]]" -catr:Szachy -log Traceback (most recent call last): File "pywikipedia/replace.py", line 716, in <module> main() File "pywikipedia/replace.py", line 580, in main raise wikipedia.Error, 'require even number of replacements.' wikipedia.Error: require even number of replacements.
using it with wikidump helps, but no reason to crash
----------------------------------------------------------------------
Comment By: xqt (xqt)
Date: 2009-10-13 08:48
Message: use -regex instead of -regexp
----------------------------------------------------------------------
Comment By: Dmitry Nikitin (dmitrynikitin) Date: 2009-10-13 08:34
Message: python replace.py -help
-regex Make replacements using regular expressions. If this argument isn't given, the bot will make simple text replacements.
-regex, not -regexp
----------------------------------------------------------------------
You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=603138&aid=2877280...
pywikipedia-bugs@lists.wikimedia.org