summaryrefslogtreecommitdiffstats
path: root/Lib/idlelib/run.py
diff options
context:
space:
mode:
authorKurt B. Kaiser <kbk@shore.net>2002-08-05 03:52:10 (GMT)
committerKurt B. Kaiser <kbk@shore.net>2002-08-05 03:52:10 (GMT)
commit8dcdb77132563c734c228e815498c47e487f95cf (patch)
tree37388a14ba67dc380e90edbf37d006ec820095a6 /Lib/idlelib/run.py
parent725bb233b9492eb4b5532d84b60db5daa1e6b195 (diff)
downloadcpython-8dcdb77132563c734c228e815498c47e487f95cf.zip
cpython-8dcdb77132563c734c228e815498c47e487f95cf.tar.gz
cpython-8dcdb77132563c734c228e815498c47e487f95cf.tar.bz2
GvR provided solution to the socket rebinding timeout problem.
M PyShell.py M rpc.py M run.py
Diffstat (limited to 'Lib/idlelib/run.py')
-rw-r--r--Lib/idlelib/run.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/Lib/idlelib/run.py b/Lib/idlelib/run.py
index cc3edf1..9ede2ff 100644
--- a/Lib/idlelib/run.py
+++ b/Lib/idlelib/run.py
@@ -26,13 +26,13 @@ def main():
port = int(sys.argv[1])
sys.argv[:] = [""]
addr = ("localhost", port)
- for i in range(12):
+ for i in range(6):
time.sleep(i)
try:
svr = rpc.RPCServer(addr, MyHandler)
break
except socket.error, err:
- if i < 5:
+ if i < 3:
print>>sys.__stderr__, ".. ",
else:
print>>sys.__stderr__,"\nPython subprocess socket error: "\