mirror of
https://github.com/python/cpython.git
synced 2025-12-04 00:30:19 +00:00
Whitespace normalization.
This commit is contained in:
parent
3dc6bb3c25
commit
480725d4c5
3 changed files with 4 additions and 4 deletions
|
|
@ -355,12 +355,12 @@ class HandlerTests(unittest.TestCase):
|
|||
"file://%s%s" % (socket.gethostbyname('localhost'), urlpath),
|
||||
]
|
||||
try:
|
||||
localaddr = socket.gethostbyname(socket.gethostname())
|
||||
localaddr = socket.gethostbyname(socket.gethostname())
|
||||
except socket.gaierror:
|
||||
localaddr = ''
|
||||
if localaddr:
|
||||
urls.append("file://%s%s" % (localaddr, urlpath))
|
||||
|
||||
|
||||
for url in urls:
|
||||
f = open(TESTFN, "wb")
|
||||
try:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue