From: Eric S. Raymond Date: Fri, 9 Feb 2001 05:38:46 +0000 (+0000) Subject: Correction to test main. X-Git-Tag: v2.1b1~485 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=5ff63d67803471f9089885501fab6710ee00a38d;p=python Correction to test main. --- diff --git a/Lib/BaseHTTPServer.py b/Lib/BaseHTTPServer.py index 8d9034530c..3e78d8b929 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)