summaryrefslogtreecommitdiffstats
path: root/Lib/BaseHTTPServer.py
diff options
context:
space:
mode:
authorEric S. Raymond <esr@thyrsus.com>2001-02-09 05:38:46 (GMT)
committerEric S. Raymond <esr@thyrsus.com>2001-02-09 05:38:46 (GMT)
commit5ff63d67803471f9089885501fab6710ee00a38d (patch)
treeaa9e0e78679331d3cf2c580b3ed565b52d52466a /Lib/BaseHTTPServer.py
parentf296019cc52477ad7c8f9f0f4b23b873f19cba7e (diff)
downloadcpython-5ff63d67803471f9089885501fab6710ee00a38d.zip
cpython-5ff63d67803471f9089885501fab6710ee00a38d.tar.gz
cpython-5ff63d67803471f9089885501fab6710ee00a38d.tar.bz2
Correction to test main.
Diffstat (limited to 'Lib/BaseHTTPServer.py')
-rw-r--r--Lib/BaseHTTPServer.py2
1 files changed, 1 insertions, 1 deletions
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)