Skip to content

Commit

Permalink
UaStateGeneric.__init__() -> super().__init__().
Browse files Browse the repository at this point in the history
  • Loading branch information
sobomax committed Jan 15, 2025
1 parent a8303a2 commit 4bbd6bb
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion sippy/UaStateConnected.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ class UaStateConnected(UaStateGeneric):
def __init__(self, ua):
self.keepalives = 0
self.ka_tr = None
UaStateGeneric.__init__(self, ua)
super().__init__(ua)
self.ua.branch = None
if self.ua.kaInterval > 0:
Timeout(self.keepAlive, self.ua.kaInterval)
Expand Down
2 changes: 1 addition & 1 deletion sippy/UaStateDead.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ class UaStateDead(UaStateGeneric):
dead = True

def __init__(self, ua):
UaStateGeneric.__init__(self, None)
super().__init__(None)
if ua.cId != None:
ua.global_config['_sip_tm'].unregConsumer(ua, str(ua.cId))
ua.tr = None
Expand Down
2 changes: 1 addition & 1 deletion sippy/UaStateDisconnected.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ class UaStateDisconnected(UaStateGeneric):
sname = 'Disconnected'

def __init__(self, ua):
UaStateGeneric.__init__(self, ua)
super().__init__(ua)
ua.on_local_sdp_change = None
ua.on_remote_sdp_change = None
Timeout(self.goDead, ua.godead_timeout)
Expand Down
2 changes: 1 addition & 1 deletion sippy/UaStateFailed.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ class UaStateFailed(UaStateGeneric):
sname = 'Failed'

def __init__(self, ua):
UaStateGeneric.__init__(self, ua)
super().__init__(ua)
ua.on_local_sdp_change = None
ua.on_remote_sdp_change = None
Timeout(self.goDead, ua.godead_timeout)
Expand Down
2 changes: 1 addition & 1 deletion sippy/UacStateCancelling.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ class UacStateCancelling(UaStateGeneric):
sname = 'Cancelling(UAC)'

def __init__(self, ua):
UaStateGeneric.__init__(self, ua)
super().__init__(ua)
ua.on_local_sdp_change = None
ua.on_remote_sdp_change = None
# 300 provides good estimate on the amount of time during which
Expand Down

0 comments on commit 4bbd6bb

Please sign in to comment.