]> granicus.if.org Git - python/commitdiff
Remove debugging connection message
authorKurt B. Kaiser <kbk@shore.net>
Mon, 23 Dec 2002 22:51:03 +0000 (22:51 +0000)
committerKurt B. Kaiser <kbk@shore.net>
Mon, 23 Dec 2002 22:51:03 +0000 (22:51 +0000)
Lib/idlelib/rpc.py

index 3f1a7462d4ea081954ba03de35eb1cb5225ea26d..53e524b6c89e9d801630e70a0cb0cc8a66aa9011 100644 (file)
@@ -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):