mirror of
https://github.com/python/cpython.git
synced 2025-08-04 00:48:58 +00:00
Avoid problem resolving 'localhost'
M PyShell.py M rpc.py M run.py
This commit is contained in:
parent
852f35bbeb
commit
24d7e0cbb8
3 changed files with 8 additions and 4 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue