From: Kurt B. Kaiser Date: Mon, 23 Dec 2002 22:51:03 +0000 (+0000) Subject: Remove debugging connection message X-Git-Tag: v2.3c1~2902 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=74d93c81c190f9dfd7302e17536a49b8dd4f7da6;p=python Remove debugging connection message --- diff --git a/Lib/idlelib/rpc.py b/Lib/idlelib/rpc.py index 3f1a7462d4..53e524b6c8 100644 --- a/Lib/idlelib/rpc.py +++ b/Lib/idlelib/rpc.py @@ -409,11 +409,12 @@ class RPCClient(SocketIO): def accept(self): working_sock, address = self.listening_sock.accept() + if self.debugging: + print>>sys.__stderr__, "** Connection request from ", address if address[0] == '127.0.0.1': - print>>sys.__stderr__, "Idle accepted connection from ", address SocketIO.__init__(self, working_sock) else: - print>>sys.__stderr__, "Invalid host: ", address + print>>sys.__stderr__, "** Invalid host: ", address raise socket.error def get_remote_proxy(self, oid):