in my cosmetic_changes.py I have following lines:
text = pywikibot.replaceExcept(text, u' m. n. m.', u' m n.
m.', ['comment', 'math', 'nowiki', 'pre'])
text = pywikibot.replaceExcept(text, u' viz.', u' viz',
['comment', 'math', 'nowiki', 'pre'])
I think, that r in the beginning means regular expression, but u means
simple text.
But bot takes dot like any character, so i got e.g.
revize ->reviz
má na mále -> m na mále
http://cs.wikipedia.org/w/index.php?title=Ferrari_FF&action=historysubmit&diff=7277383&oldid=7116503
How to channge it to correct output?
JAnD
--
--
Ing. Jan Dudík
_______________________________________________
Pywikipedia-l mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/pywikipedia-l