Revision: 6290 Author: purodha Date: 2009-01-23 16:06:51 +0000 (Fri, 23 Jan 2009)
Log Message: ----------- Forgotten case added.
Modified Paths: -------------- trunk/pywikipedia/interwiki.py
Modified: trunk/pywikipedia/interwiki.py =================================================================== --- trunk/pywikipedia/interwiki.py 2009-01-23 16:03:32 UTC (rev 6289) +++ trunk/pywikipedia/interwiki.py 2009-01-23 16:06:51 UTC (rev 6290) @@ -1617,7 +1617,7 @@ hints.append(arg[6:]) elif arg.startswith('-hintfile:'): hintfilename = arg[10:] - if hintfilename is None: + if (hintfilename is None) or (hintfilenname == ''): 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 ]]
pywikipedia-l@lists.wikimedia.org