Commit 5d7dc240 authored by Vincent Pelletier's avatar Vincent Pelletier

Use super() to walk up class hierarchy.

parent 89387089
......@@ -37,7 +37,7 @@ class ClientElectionHandler(MasterHandler):
# connection in progress
MasterHandler.connectionStarted(self, conn)
super(ClientElectionHandler, self).connectionStarted(conn)
def connectionFailed(self, conn):
addr = conn.getAddress()
......@@ -48,11 +48,11 @@ class ClientElectionHandler(MasterHandler):
# connection never success, node is still in unknown state
MasterHandler.connectionFailed(self, conn)
super(ClientElectionHandler, self).connectionFailed(conn)
def connectionCompleted(self, conn):
MasterHandler.connectionCompleted(self, conn)
super(ClientElectionHandler, self).connectionCompleted(conn)
def connectionLost(self, conn, new_state):
addr = conn.getAddress()
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment