Commit 4aa72733 authored by Vincent Pelletier's avatar Vincent Pelletier

Use super.

parent 56570945
...@@ -51,7 +51,7 @@ class PrimaryHandler(MasterHandler): ...@@ -51,7 +51,7 @@ class PrimaryHandler(MasterHandler):
# connection successfull, set it as running # connection successfull, set it as running
node.setRunning() node.setRunning()
conn.ask(Packets.AskPrimary()) conn.ask(Packets.AskPrimary())
MasterHandler.connectionCompleted(self, conn) super(PrimaryHandler, self).connectionCompleted(conn)
def reelectPrimary(self, conn): def reelectPrimary(self, conn):
raise ElectionFailure, 'reelection requested' raise ElectionFailure, 'reelection requested'
......
...@@ -24,7 +24,7 @@ class CommandEventHandler(EventHandler): ...@@ -24,7 +24,7 @@ class CommandEventHandler(EventHandler):
def connectionCompleted(self, conn): def connectionCompleted(self, conn):
# connected to admin node # connected to admin node
self.app.connected = True self.app.connected = True
EventHandler.connectionCompleted(self, conn) super(CommandEventHandler, self).connectionCompleted(conn)
def __disconnected(self): def __disconnected(self):
app = self.app app = self.app
......
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