Revision: 8049 Author: xqt Date: 2010-04-01 15:17:08 +0000 (Thu, 01 Apr 2010)
Log Message: ----------- avoid useless message using -quiet option (bug #2976434)
Modified Paths: -------------- trunk/pywikipedia/interwiki.py
Modified: trunk/pywikipedia/interwiki.py =================================================================== --- trunk/pywikipedia/interwiki.py 2010-04-01 13:10:13 UTC (rev 8048) +++ trunk/pywikipedia/interwiki.py 2010-04-01 15:17:08 UTC (rev 8049) @@ -1185,7 +1185,8 @@ return False
def reportInterwikilessPage(self, page): - pywikibot.output(u"NOTE: %s does not have any interwiki links" % self.originPage.aslink(True)) + if not globalvar.quiet or pywikibot.verbose: + pywikibot.output(u"NOTE: %s does not have any interwiki links" % self.originPage.aslink(True)) if config.without_interwiki: f = codecs.open( pywikibot.config.datafilepath('without_interwiki.txt'), 'a', 'utf-8')
pywikipedia-svn@lists.wikimedia.org