Avoid problem resolving 'localhost'

M PyShell.py
M rpc.py
M run.py
This commit is contained in:
Kurt B. Kaiser 2003-06-05 23:51:29 +00:00
parent 852f35bbeb
commit 24d7e0cbb8
3 changed files with 8 additions and 4 deletions

View file

@ -35,6 +35,7 @@ import Debugger
import RemoteDebugger
IDENTCHARS = string.ascii_letters + string.digits + "_"
LOCALHOST = '127.0.0.1'
try:
from signal import SIGTERM
@ -336,7 +337,7 @@ class ModifiedInterpreter(InteractiveInterpreter):
return [sys.executable] + w + ["-c", command, str(self.port)]
def start_subprocess(self):
addr = ("localhost", self.port)
addr = (LOCALHOST, self.port)
# Idle starts listening for connection on localhost
for i in range(3):
time.sleep(i)