Skip to content

Commit

Permalink
ioworker: Call parent constructors with super()
Browse files Browse the repository at this point in the history
Previously, these were done with manual calls to the parent.
  • Loading branch information
MurphyMc committed Oct 7, 2013
1 parent 26d8d2f commit 6097b4a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion pox/lib/ioworker/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@ class IOWorker (object):
Received data is queued until read.
"""
def __init__(self):
super(IOWorker,self).__init__()
self.send_buf = b""
self.receive_buf = b""
self.closed = False
Expand Down Expand Up @@ -355,7 +356,7 @@ class RecocoIOLoop (Task):
more_debugging = False

def __init__ (self, worker_type = RecocoIOWorker):
Task.__init__(self)
super(RecocoIOLoop,self).__init__()
self._worker_type = worker_type
self._workers = set()
self.pinger = makePinger()
Expand Down
3 changes: 2 additions & 1 deletion pox/lib/ioworker/workers.py
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,8 @@ def __init__ (self, **kw):
If the disconnect callback returns False, a new connection will NOT
be opened.
"""
IOWorker.__init__(self)
#IOWorker.__init__(self)
super(PersistentIOWorker,self).__init__()

self.kw = kw

Expand Down

0 comments on commit 6097b4a

Please sign in to comment.