mirror of
https://github.com/python/cpython.git
synced 2025-08-31 14:07:50 +00:00
Remove duplication.
This commit is contained in:
parent
a5a9a9c369
commit
e130a52d8a
36 changed files with 43 additions and 43 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue