From 5ff63d67803471f9089885501fab6710ee00a38d Mon Sep 17 00:00:00 2001 From: "Eric S. Raymond" Date: Fri, 9 Feb 2001 05:38:46 +0000 Subject: Correction to test main. --- Lib/BaseHTTPServer.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Lib/BaseHTTPServer.py b/Lib/BaseHTTPServer.py index 8d90345..3e78d8b 100644 --- a/Lib/BaseHTTPServer.py +++ b/Lib/BaseHTTPServer.py @@ -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) -- cgit v0.12