Revision: 6482
Author: purodha
Date: 2009-03-03 22:13:15 +0000 (Tue, 03 Mar 2009)
Log Message:
-----------
(bug 2658361) always store language in file without_interwiki.txt
Allow -hintfile without trailing colon.
Modified Paths:
--------------
trunk/pywikipedia/interwiki.py
Modified: trunk/pywikipedia/interwiki.py
===================================================================
--- trunk/pywikipedia/interwiki.py 2009-03-03 18:48:44 UTC (rev 6481)
+++ trunk/pywikipedia/interwiki.py 2009-03-03 22:13:15 UTC (rev 6482)
@@ -782,7 +782,7 @@
if config.without_interwiki:
f = codecs.open(
wikipedia.config.datafilepath('without_interwiki.txt'), 'a',
'utf-8')
- f.write("# %s \n" % page.aslink())
+ f.write("# %s \n" % page.aslink(forceInterwiki=True))
f.close()
def askForHints(self, counter):
@@ -1659,7 +1659,7 @@
globalvar.auto = False
elif arg.startswith('-hint:'):
hints.append(arg[6:])
- elif arg.startswith('-hintfile:'):
+ elif arg.startswith('-hintfile'):
hintfilename = arg[10:]
if (hintfilename is None) or (hintfilename == ''):
hintfilename = wikipedia.input(u'Please enter the hint
filename:')
_______________________________________________
Pywikipedia-l mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/pywikipedia-l