From 946f6991ff57e69a0b785307faa3e0cdf6039cc1 Mon Sep 17 00:00:00 2001 From: Antoine Millet Date: Mon, 3 Oct 2011 11:07:26 +0200 Subject: [PATCH] Enhanced comments --- sjrpc/core/rpcconnection.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/sjrpc/core/rpcconnection.py b/sjrpc/core/rpcconnection.py index 33cd6f3..0a831f6 100644 --- a/sjrpc/core/rpcconnection.py +++ b/sjrpc/core/rpcconnection.py @@ -100,7 +100,7 @@ class RpcConnection(object): callback=self._cb_need_to_send) self._need_to_send.start() - # Setup self.logger.facility: + # Setup logging facility: self.logger = logging.getLogger('sjrpc.%s' % self.getpeername()) # Protocols registered on this connection: @@ -114,7 +114,8 @@ class RpcConnection(object): # By default, enter in fallback mode, no label, all frames are # redirected on Rpc0: self.fallback = True - # Send our capabilities to the peer + + # Send our capabilities to the peer: self._remote_capabilities = None self._send_capabilities() @@ -198,7 +199,7 @@ class RpcConnection(object): else: label, pl_size = struct.unpack(RpcConnection.MESSAGE_HEADER, self._inbound_buffer) - # Get the registered protocol for the specified label + # Get the registered protocol for the specified label: self._proto_receiving = self._protocols.get(label) # If frame's label is not binded to a protocol, we create a -- GitLab