Skip to content

Commit

Permalink
Added missing calls to parent constructors.
Browse files Browse the repository at this point in the history
  • Loading branch information
mcferrill committed Jun 15, 2021
1 parent f012fc9 commit b6580ef
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions chapter10/image.py
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,7 @@ class Message(packet.Message, ImageMessage):
"""

def __init__(self, *args, **kwargs):
packet.Packet.__init__(self, *args, **kwargs)
fmt = ''
if self.iph:
fmt = 'u64 ipts\n'
Expand Down Expand Up @@ -140,6 +141,7 @@ class Message(packet.Message, ImageMessage):
"""

def __init__(self, *args, **kwargs):
packet.Packet.__init__(self, *args, **kwargs)
fmt = ''
if self.iph:
fmt = 'u64 ipts\n'
Expand Down

0 comments on commit b6580ef

Please sign in to comment.