Revision: 3955 Author: wikipedian Date: 2007-08-02 16:47:03 +0000 (Thu, 02 Aug 2007)
Log Message: ----------- bugfix
Modified Paths: -------------- trunk/pywikipedia/weblinkchecker.py
Modified: trunk/pywikipedia/weblinkchecker.py =================================================================== --- trunk/pywikipedia/weblinkchecker.py 2007-08-02 16:27:50 UTC (rev 3954) +++ trunk/pywikipedia/weblinkchecker.py 2007-08-02 16:47:03 UTC (rev 3955) @@ -203,12 +203,12 @@ def getEncodingUsedByServer(self): if not self.serverEncoding: try: - wikipedia.output(u'Contacting server %s to find out its default encoding...' % self.conn) + wikipedia.output(u'Contacting server %s to find out its default encoding...' % self.host) conn = self.getConnection() conn.request('HEAD', '/', None, self.header) response = conn.getresponse()
- self.readEncodingFromResponse() + self.readEncodingFromResponse(response) except: pass if not self.serverEncoding: