Revision: 7634 Author: xqt Date: 2009-11-12 09:14:12 +0000 (Thu, 12 Nov 2009)
Log Message: ----------- append dumps (request #1922120)
Modified Paths: -------------- trunk/pywikipedia/interwiki.py
Modified: trunk/pywikipedia/interwiki.py =================================================================== --- trunk/pywikipedia/interwiki.py 2009-11-11 19:49:37 UTC (rev 7633) +++ trunk/pywikipedia/interwiki.py 2009-11-12 09:14:12 UTC (rev 7634) @@ -1743,7 +1743,7 @@ dumpfn = pywikibot.config.datafilepath( 'interwiki-dumps', 'interwikidump-%s-%s.txt' % (site.family.name, site.lang)) - f = codecs.open(dumpfn, 'w', 'utf-8') + f = codecs.open(dumpfn, 'a', 'utf-8') for subj in self.subjects: f.write(subj.originPage.aslink(None)+'\n') f.close()