Revision: 7699 Author: alexsh Date: 2009-11-26 09:37:32 +0000 (Thu, 26 Nov 2009)
Log Message: ----------- identify login between API and ordinary
Modified Paths: -------------- trunk/pywikipedia/login.py
Modified: trunk/pywikipedia/login.py =================================================================== --- trunk/pywikipedia/login.py 2009-11-26 09:36:47 UTC (rev 7698) +++ trunk/pywikipedia/login.py 2009-11-26 09:37:32 UTC (rev 7699) @@ -273,7 +273,11 @@
self.password = self.password.encode(self.site.encoding())
- wikipedia.output(u"Logging in to %s as %s" % (self.site, self.username)) + if api: + wikipedia.output(u"Logging in to %s as %s via API." % (self.site, self.username)) + else: + wikipedia.output(u"Logging in to %s as %s" % (self.site, self.username)) + try: cookiedata = self.getCookie(api) except NotImplementedError:
pywikipedia-svn@lists.wikimedia.org