[Pywikipedia-l] SVN: [4773] trunk/pywikipedia/add_text.py
filnik at svn.wikimedia.org
filnik at svn.wikimedia.org
Fri Dec 28 18:06:00 UTC 2007
Revision: 4773
Author: filnik
Date: 2007-12-28 18:06:00 +0000 (Fri, 28 Dec 2007)
Log Message:
-----------
Forgot to delete an useless variable (no more used after the rewrite)
Modified Paths:
--------------
trunk/pywikipedia/add_text.py
Modified: trunk/pywikipedia/add_text.py
===================================================================
--- trunk/pywikipedia/add_text.py 2007-12-28 17:56:09 UTC (rev 4772)
+++ trunk/pywikipedia/add_text.py 2007-12-28 18:06:00 UTC (rev 4773)
@@ -113,7 +113,7 @@
yield wikipedia.Page(self.site, result)
def add_text(generator = None, addText = None, summary = None, regexSkip = None, regexSkipUrl = None,
- always = False, exceptUrl = False, up = False):
+ always = False, up = False):
# When a page is tagged as "really well written" it has a star in the interwiki links.
# This is a list of all the templates used (in regex format) to make the stars appear.
starsList = ['link[ _]fa', 'link[ _]adq', 'enllaç[ _]ad',
@@ -249,7 +249,7 @@
def main():
# If none, the var is setted only for check purpose.
summary = None; addText = None; regexSkip = None; regexSkipUrl = None;
- generator = None; always = False; exceptUrl = False
+ generator = None; always = False
# Load a lot of default generators
genFactory = pagegenerators.GeneratorFactory()
# Put the text above or below the text?
@@ -293,7 +293,7 @@
always = True
else:
generator = genFactory.handleArg(arg)
- add_text(generator, addText, summary, regexSkip, regexSkipUrl, always, exceptUrl, up)
+ add_text(generator, addText, summary, regexSkip, regexSkipUrl, always, up)
if __name__ == "__main__":
try:
More information about the Pywikipedia-l
mailing list