diff Lib/idlelib/PyShell.py @ 29365:72ce7cc03f27 legacy-trunk

Avoid problem resolving 'localhost' M PyShell.py M rpc.py M run.py
author Kurt B. Kaiser <kbk@shore.net>
date Thu, 05 Jun 2003 23:51:29 +0000
parents b1395014714a
children 05058d813441
line wrap: on
line diff
--- a/Lib/idlelib/PyShell.py	Thu Jun 05 11:36:55 2003 +0000
+++ b/Lib/idlelib/PyShell.py	Thu Jun 05 23:51:29 2003 +0000
@@ -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)