mirror of
https://github.com/python/cpython.git
synced 2025-08-04 00:48:58 +00:00
Correction to test main.
This commit is contained in:
parent
f296019cc5
commit
5ff63d6780
1 changed files with 1 additions and 1 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue