From 4bbd6bb65455b9e44547b9cc3544da8743cb4e8a Mon Sep 17 00:00:00 2001 From: Maksym Sobolyev Date: Wed, 15 Jan 2025 11:15:39 -0800 Subject: [PATCH] UaStateGeneric.__init__() -> super().__init__(). --- sippy/UaStateConnected.py | 2 +- sippy/UaStateDead.py | 2 +- sippy/UaStateDisconnected.py | 2 +- sippy/UaStateFailed.py | 2 +- sippy/UacStateCancelling.py | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) diff --git a/sippy/UaStateConnected.py b/sippy/UaStateConnected.py index 2333ceb8..e246fd9c 100644 --- a/sippy/UaStateConnected.py +++ b/sippy/UaStateConnected.py @@ -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) diff --git a/sippy/UaStateDead.py b/sippy/UaStateDead.py index 87a77b39..b92045dd 100644 --- a/sippy/UaStateDead.py +++ b/sippy/UaStateDead.py @@ -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 diff --git a/sippy/UaStateDisconnected.py b/sippy/UaStateDisconnected.py index cab215d7..a880112d 100644 --- a/sippy/UaStateDisconnected.py +++ b/sippy/UaStateDisconnected.py @@ -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) diff --git a/sippy/UaStateFailed.py b/sippy/UaStateFailed.py index ec34b583..cac2ccd5 100644 --- a/sippy/UaStateFailed.py +++ b/sippy/UaStateFailed.py @@ -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) diff --git a/sippy/UacStateCancelling.py b/sippy/UacStateCancelling.py index ca2f6b31..7f190a46 100644 --- a/sippy/UacStateCancelling.py +++ b/sippy/UacStateCancelling.py @@ -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