Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 74d93c8

Browse files
committed
Remove debugging connection message
1 parent 234d074 commit 74d93c8

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

Lib/idlelib/rpc.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -409,11 +409,12 @@ def __init__(self, address, family=socket.AF_INET, type=socket.SOCK_STREAM):
409409

410410
def accept(self):
411411
working_sock, address = self.listening_sock.accept()
412+
if self.debugging:
413+
print>>sys.__stderr__, "** Connection request from ", address
412414
if address[0] == '127.0.0.1':
413-
print>>sys.__stderr__, "Idle accepted connection from ", address
414415
SocketIO.__init__(self, working_sock)
415416
else:
416-
print>>sys.__stderr__, "Invalid host: ", address
417+
print>>sys.__stderr__, "** Invalid host: ", address
417418
raise socket.error
418419

419420
def get_remote_proxy(self, oid):

0 commit comments

Comments
 (0)