Revision: 7655 Author: xqt Date: 2009-11-16 05:51:41 +0000 (Mon, 16 Nov 2009)
Log Message: ----------- Parsing from left to right we don't have to read the cookie for not no_hostname
Modified Paths: -------------- trunk/pywikipedia/wikipedia.py
Modified: trunk/pywikipedia/wikipedia.py =================================================================== --- trunk/pywikipedia/wikipedia.py 2009-11-16 05:38:03 UTC (rev 7654) +++ trunk/pywikipedia/wikipedia.py 2009-11-16 05:51:41 UTC (rev 7655) @@ -5578,7 +5578,7 @@
headers = {'User-agent': useragent,}
- if self.cookies(sysop = sysop) and not no_hostname: + if not no_hostname and self.cookies(sysop = sysop): headers['Cookie'] = self.cookies(sysop = sysop) if compress: headers['Accept-encoding'] = 'gzip'
pywikipedia-svn@lists.wikimedia.org