From: Georg Brandl Date: Sun, 6 Mar 2011 10:12:54 +0000 (+0100) Subject: Merge doc fixes. X-Git-Tag: v3.3.0a1~2982 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=1ebca480309b78d728c4f3a0d1cd4b2cefd92d0a;p=python Merge doc fixes. --- 1ebca480309b78d728c4f3a0d1cd4b2cefd92d0a diff --cc Doc/library/asyncore.rst index aa16acaa18,5f95d41161..31c1aa154f --- a/Doc/library/asyncore.rst +++ b/Doc/library/asyncore.rst @@@ -282,9 -280,10 +282,10 @@@ implement its socket handling: def __init__(self, host, path): asyncore.dispatcher.__init__(self) - self.create_socket(socket.AF_INET, socket.SOCK_STREAM) + self.create_socket() self.connect( (host, 80) ) - self.buffer = bytes('GET %s HTTP/1.0\r\n\r\n' % path, 'ascii') + self.buffer = bytes('GET %s HTTP/1.0\r\nHost: %s\r\n\r\n' % + (path, host), 'ascii') def handle_connect(self): pass