Bugs item #2877280, was opened at 2009-10-12 20:46 Message generated for change (Comment added) made by dmitrynikitin 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: Open Resolution: None Priority: 5 Private: No Submitted By: masti (masti01) Assigned to: Nobody/Anonymous (nobody) 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: Dmitry Nikitin (dmitrynikitin) Date: 2009-10-13 06: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...