[Pywikipedia-l] SVN: [6289] trunk/pywikipedia/interwiki.py
purodha at svn.wikimedia.org
purodha at svn.wikimedia.org
Fri Jan 23 16:03:32 UTC 2009
Revision: 6289
Author: purodha
Date: 2009-01-23 16:03:32 +0000 (Fri, 23 Jan 2009)
Log Message:
-----------
Typing error.
Modified Paths:
--------------
trunk/pywikipedia/interwiki.py
Modified: trunk/pywikipedia/interwiki.py
===================================================================
--- trunk/pywikipedia/interwiki.py 2009-01-23 16:00:52 UTC (rev 6288)
+++ trunk/pywikipedia/interwiki.py 2009-01-23 16:03:32 UTC (rev 6289)
@@ -1616,10 +1616,10 @@
elif arg.startswith('-hint:'):
hints.append(arg[6:])
elif arg.startswith('-hintfile:'):
- hintfile = arg[10:]
- if filename is None:
- filename = wikipedia.input(u'Please enter the hint filename:')
- f = codecs.open(filename, 'r', config.textfile_encoding)
+ hintfilename = arg[10:]
+ if hintfilename is None:
+ hintfilename = wikipedia.input(u'Please enter the hint filename:')
+ f = codecs.open(hintfilename, 'r', config.textfile_encoding)
R = re.compile(ur'\[\[(.+?)(?:\]\]|\|)') # hint or title ends either before | or before ]]
for pageTitle in R.findall(f.read()):
hints.append(pageTitle)
More information about the Pywikipedia-l
mailing list