]> granicus.if.org Git - python/commitdiff
Correction to test main.
authorEric S. Raymond <esr@thyrsus.com>
Fri, 9 Feb 2001 05:38:46 +0000 (05:38 +0000)
committerEric S. Raymond <esr@thyrsus.com>
Fri, 9 Feb 2001 05:38:46 +0000 (05:38 +0000)
Lib/BaseHTTPServer.py

index 8d9034530c0ae80cf3f5e6dc5afbc336149e8234..3e78d8b929c84a550a597c6b40c15e86abddff76 100644 (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)