mirror of
https://github.com/python/cpython.git
synced 2024-11-24 18:34:43 +08:00
Correction to test main.
This commit is contained in:
parent
f296019cc5
commit
5ff63d6780
@ -467,7 +467,7 @@ def test(HandlerClass = BaseHTTPRequestHandler,
|
||||
"""
|
||||
|
||||
if sys.argv[1:]:
|
||||
port = sys.argv[1].atoi()
|
||||
port = int(sys.argv[1])
|
||||
else:
|
||||
port = 8000
|
||||
server_address = ('', port)
|
||||
|
Loading…
Reference in New Issue
Block a user