Correction to test main.

This commit is contained in:
Eric S. Raymond 2001-02-09 05:38:46 +00:00
parent f296019cc5
commit 5ff63d6780

View File

@ -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)