Commit 203fb855 authored by Vincent Pelletier's avatar Vincent Pelletier

Revert commit 950: the missing space after '*' operator was not detected by...

Revert commit 950: the missing space after '*' operator was not detected by pylint because in that use it's not a binary operator, so coding style doesn't require them to be followed by a space.


git-svn-id: https://svn.erp5.org/repos/neo/branches/prototype3@952 71dcc9de-d417-0410-9af5-da40c76e7ee4
parent ea0a6843
......@@ -54,15 +54,15 @@ class EventHandler(object):
def connectionStarted(self, conn):
"""Called when a connection is started."""
logging.debug('connection started for %s:%d', * (conn.getAddress()))
logging.debug('connection started for %s:%d', *(conn.getAddress()))
def connectionCompleted(self, conn):
"""Called when a connection is completed."""
logging.debug('connection completed for %s:%d', * (conn.getAddress()))
logging.debug('connection completed for %s:%d', *(conn.getAddress()))
def connectionFailed(self, conn):
"""Called when a connection failed."""
logging.debug('connection failed for %s:%d', * (conn.getAddress()))
logging.debug('connection failed for %s:%d', *(conn.getAddress()))
def connectionAccepted(self, conn, connector, addr):
"""Called when a connection is accepted."""
......@@ -74,11 +74,11 @@ class EventHandler(object):
def timeoutExpired(self, conn):
"""Called when a timeout event occurs."""
logging.debug('timeout expired for %s:%d', * (conn.getAddress()))
logging.debug('timeout expired for %s:%d', *(conn.getAddress()))
def connectionClosed(self, conn):
"""Called when a connection is closed by the peer."""
logging.debug('connection closed for %s:%d', * (conn.getAddress()))
logging.debug('connection closed for %s:%d', *(conn.getAddress()))
def packetReceived(self, conn, packet):
"""Called when a packet is received."""
......@@ -87,7 +87,7 @@ class EventHandler(object):
# XXX: what's the purpose of this method ?
def peerBroken(self, conn):
"""Called when a peer is broken."""
logging.error('%s:%d is broken', * (conn.getAddress()))
logging.error('%s:%d is broken', *(conn.getAddress()))
def packetMalformed(self, conn, packet, message='', *args):
"""Called when a packet is malformed."""
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment