http://www.mediawiki.org/wiki/Special:Code/pywikipedia/10286
Revision: 10286 Author: xqt Date: 2012-06-03 13:14:45 +0000 (Sun, 03 Jun 2012) Log Message: ----------- concatenate as format string
Modified Paths: -------------- branches/rewrite/scripts/login.py
Modified: branches/rewrite/scripts/login.py =================================================================== --- branches/rewrite/scripts/login.py 2012-06-03 12:56:28 UTC (rev 10285) +++ branches/rewrite/scripts/login.py 2012-06-03 13:14:45 UTC (rev 10286) @@ -93,10 +93,8 @@ else: pywikibot.output(u"Not logged in on %(site)s." % locals()) except NoSuchSite: - pywikibot.output( - lang + u'.' + familyName + -u' is not a valid site, please remove it from your config') - + pywikibot.output(u'%s.%s is not a valid site, please remove it' + u' from your config' % (lang, familyName)) if __name__ == "__main__": try: main()