[Pywikipedia-l] -excepttext failure in replace.py

2009-10-03 Thread BinĂ¡ris
Hi folks, I have a batch file that is: replace.py -xml:e:\huwiki-latest-pages-articles.xml -summary:x -namespace:0 -fix:vegyesjav4 -regex -excepttext:\{\{[Ss]zinnyei\}\} -excepttext:\{\{[Pp]allas\}\} -excepttext:V.lyi Andr.s -excepttext:F.nyes Elek Now, exceptions don't work, and I keep

[Pywikipedia-l] [PATCH] Minor documentation update on wikipedia.py

2009-10-03 Thread Santiago M. Mola
Hello, A comment on wikipedia.py points to http://pydoc.org/2.3/difflib.html which no longer exists. The current location is http://docs.python.org/library/difflib.html. Patch attached. Best regards, -- Santiago M. Mola Jabber ID: cooldw...@gmail.com diff --git a/wikipedia.py b/wikipedia.py

[Pywikipedia-l] [PATCH] Parse redirect / on xmlreader.py

2009-10-03 Thread Santiago M. Mola
Hello, While writing a bot, I had to discard redirected pages from the XML dump. In order to be able to do it early, I modified xmlreader.py to parse the redirect / tag and add it to XmlEntry. I'm attaching the patch, which is not extensively tested. I haven't updated the regex_parse method