summaryrefslogtreecommitdiff
path: root/Lib/idlelib/PyShell.py
diff options
context:
space:
mode:
authorKurt B. Kaiser <kbk@shore.net>2003-06-05 23:51:29 +0000
committerKurt B. Kaiser <kbk@shore.net>2003-06-05 23:51:29 +0000
commit24d7e0cbb8b978738f223d4bb6cb184054d72e18 (patch)
tree48e8e80b4edc93165a001f78dd4662e23c710937 /Lib/idlelib/PyShell.py
parent852f35bbeb23d898fb0d16489effb1197ee3fe02 (diff)
downloadcpython-git-24d7e0cbb8b978738f223d4bb6cb184054d72e18.tar.gz
Avoid problem resolving 'localhost'
M PyShell.py M rpc.py M run.py
Diffstat (limited to 'Lib/idlelib/PyShell.py')
-rw-r--r--Lib/idlelib/PyShell.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/Lib/idlelib/PyShell.py b/Lib/idlelib/PyShell.py
index db4a05b38e..e556af352f 100644
--- a/Lib/idlelib/PyShell.py
+++ b/Lib/idlelib/PyShell.py
@@ -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)