Update MpdServer's docstrings

This commit is contained in:
Stein Magnus Jodal 2011-06-04 17:38:03 +02:00
parent 939a8f40d6
commit 68a671414c

View File

@ -56,14 +56,14 @@ class MpdServer(asyncore.dispatcher):
sys.exit(1)
def handle_accept(self):
"""Handle new client connection."""
"""Called by asyncore when a new client connects."""
(client_socket, client_socket_address) = self.accept()
logger.info(u'MPD client connection from [%s]:%s',
client_socket_address[0], client_socket_address[1])
MpdSession(self, client_socket, client_socket_address)
def handle_close(self):
"""Handle end of client connection."""
"""Called by asyncore when the socket is closed."""
self.close()
def _format_hostname(self, hostname):