diff options
author | Kurt B. Kaiser <kbk@shore.net> | 2003-06-05 23:51:29 (GMT) |
---|---|---|
committer | Kurt B. Kaiser <kbk@shore.net> | 2003-06-05 23:51:29 (GMT) |
commit | 24d7e0cbb8b978738f223d4bb6cb184054d72e18 (patch) | |
tree | 48e8e80b4edc93165a001f78dd4662e23c710937 /Lib/idlelib/run.py | |
parent | 852f35bbeb23d898fb0d16489effb1197ee3fe02 (diff) | |
download | cpython-24d7e0cbb8b978738f223d4bb6cb184054d72e18.zip cpython-24d7e0cbb8b978738f223d4bb6cb184054d72e18.tar.gz cpython-24d7e0cbb8b978738f223d4bb6cb184054d72e18.tar.bz2 |
Avoid problem resolving 'localhost'
M PyShell.py
M rpc.py
M run.py
Diffstat (limited to 'Lib/idlelib/run.py')
-rw-r--r-- | Lib/idlelib/run.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/Lib/idlelib/run.py b/Lib/idlelib/run.py index 8b1555d..5e86e47 100644 --- a/Lib/idlelib/run.py +++ b/Lib/idlelib/run.py @@ -17,6 +17,8 @@ import interrupt import __main__ +LOCALHOST = '127.0.0.1' + # Thread shared globals: Establish a queue between a subthread (which handles # the socket) and the main thread (which runs user code), plus global # completion and exit flags: @@ -52,7 +54,7 @@ def main(del_exitfunc=False): sys.argv[:] = [""] sockthread = threading.Thread(target=manage_socket, name='SockThread', - args=(('localhost', port),)) + args=((LOCALHOST, port),)) sockthread.setDaemon(True) sockthread.start() while 1: |