diff options
Diffstat (limited to 'Lib')
-rw-r--r-- | Lib/BaseHTTPServer.py | 2 |
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) |