Revision: 7365
Author: nicdumz
Date: 2009-10-04 15:11:01 +0000 (Sun, 04 Oct 2009)
Log Message:
-----------
doc: fixing url
Patch by Santiago Mola
Modified Paths:
--------------
trunk/pywikipedia/wikipedia.py
Modified: trunk/pywikipedia/wikipedia.py
===================================================================
--- trunk/pywikipedia/wikipedia.py 2009-10-04 15:08:53 UTC (rev 7364)
+++ trunk/pywikipedia/wikipedia.py 2009-10-04 15:11:01 UTC (rev 7365)
@@ -7258,7 +7258,7 @@
The differences are highlighted (only on Unix systems) to show which
changes were made.
"""
- # For information on difflib, see http://pydoc.org/2.3/difflib.html
+ # For information on difflib, see http://docs.python.org/library/difflib.html
color = {
'+': 'lightgreen',
'-': 'lightred',
Revision: 7364
Author: nicdumz
Date: 2009-10-04 15:08:53 +0000 (Sun, 04 Oct 2009)
Log Message:
-----------
Improving docstrings for multiple replacements.
Patch By Santiago Mola
Modified Paths:
--------------
trunk/pywikipedia/replace.py
Modified: trunk/pywikipedia/replace.py
===================================================================
--- trunk/pywikipedia/replace.py 2009-10-03 12:19:39 UTC (rev 7363)
+++ trunk/pywikipedia/replace.py 2009-10-04 15:08:53 UTC (rev 7364)
@@ -86,6 +86,8 @@
text. If the -regex argument is given, the first argument
will be regarded as a regular expression, and the second
argument might contain expressions like \\1 or \g<name>.
+ It is possible to introduce more than one pair of old text
+ and replacement.
Examples:
@@ -100,6 +102,9 @@
python replace.py -xml:foobar.xml "Errror" "Error" -namespace:0
+If you want to do more than one replacement at a time, use this:
+ python replace.py -xml:foobar.xml "Errror" "Error" "Faail" "Fail" -namespace:0
+
If you have a page called 'John Doe' and want to fix the format of ISBNs, use:
python replace.py -page:John_Doe -fix:isbn