Revision: 6903 Author: russblau Date: 2009-05-17 21:20:34 +0000 (Sun, 17 May 2009)
Log Message: ----------- Prevent infinite recursion in login process
Modified Paths: -------------- branches/rewrite/pywikibot/site.py
Modified: branches/rewrite/pywikibot/site.py =================================================================== --- branches/rewrite/pywikibot/site.py 2009-05-17 21:17:10 UTC (rev 6902) +++ branches/rewrite/pywikibot/site.py 2009-05-17 21:20:34 UTC (rev 6903) @@ -651,6 +651,7 @@ def login(self, sysop=False): """Log the user in if not already logged in.""" # check whether a login cookie already exists for this user + self._loginstatus = -2 if not hasattr(self, "_userinfo"): self.getuserinfo() if self.logged_in(sysop):