Remove duplication.

This commit is contained in:
Ezio Melotti 2011-10-19 10:58:56 +03:00
parent a5a9a9c369
commit e130a52d8a
36 changed files with 43 additions and 43 deletions

View file

@ -295,7 +295,7 @@ def http_server(evt, numrequests, requestHandler=None):
global ADDR, PORT, URL
ADDR, PORT = serv.socket.getsockname()
#connect to IP address directly. This avoids socket.create_connection()
#trying to connect to to "localhost" using all address families, which
#trying to connect to "localhost" using all address families, which
#causes slowdown e.g. on vista which supports AF_INET6. The server listens
#on AF_INET only.
URL = "http://%s:%d"%(ADDR, PORT)
@ -354,7 +354,7 @@ def http_multi_server(evt, numrequests, requestHandler=None):
global ADDR, PORT, URL
ADDR, PORT = serv.socket.getsockname()
#connect to IP address directly. This avoids socket.create_connection()
#trying to connect to to "localhost" using all address families, which
#trying to connect to "localhost" using all address families, which
#causes slowdown e.g. on vista which supports AF_INET6. The server listens
#on AF_INET only.
URL = "http://%s:%d"%(ADDR, PORT)