Remove methods with unnecessary super delegation.
This commit is contained in:
committed by
GitHub
parent
5456166b72
commit
fb2312e844
@@ -222,8 +222,6 @@ class AbsChunkedInputStream(InputStream, HaltListener):
|
||||
return self._decoded_length
|
||||
|
||||
class ChunkException(IOError):
|
||||
def __init__(self, cause):
|
||||
super().__init__(cause)
|
||||
|
||||
@staticmethod
|
||||
def from_stream_error(stream_error: int):
|
||||
|
||||
@@ -107,5 +107,4 @@ class AudioKeyManager(PacketsReceiver):
|
||||
return self.reference.get(block=False)
|
||||
|
||||
class AesKeyException(IOError):
|
||||
def __init__(self, ex):
|
||||
super().__init__(ex)
|
||||
pass
|
||||
|
||||
@@ -83,8 +83,7 @@ class CdnManager:
|
||||
"Could not retrieve CDN url! result: {}".format(proto.result))
|
||||
|
||||
class CdnException(Exception):
|
||||
def __init__(self, ex):
|
||||
super().__init__(ex)
|
||||
pass
|
||||
|
||||
class InternalResponse:
|
||||
_buffer: bytearray
|
||||
@@ -270,9 +269,6 @@ class CdnManager:
|
||||
self.streamer: CdnManager.Streamer = streamer
|
||||
super().__init__(retry_on_chunk_error)
|
||||
|
||||
def close(self) -> None:
|
||||
super().close()
|
||||
|
||||
def buffer(self) -> list[bytearray]:
|
||||
return self.streamer._buffer
|
||||
|
||||
|
||||
Reference in New Issue
Block a user