Avoid problem resolving 'localhost'
M PyShell.py
M rpc.py
M run.py
diff --git a/Lib/idlelib/PyShell.py b/Lib/idlelib/PyShell.py
index db4a05b..e556af3 100644
--- a/Lib/idlelib/PyShell.py
+++ b/Lib/idlelib/PyShell.py
@@ -35,6 +35,7 @@
import RemoteDebugger
IDENTCHARS = string.ascii_letters + string.digits + "_"
+LOCALHOST = '127.0.0.1'
try:
from signal import SIGTERM
@@ -336,7 +337,7 @@
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)