Remove methods with unnecessary super delegation.
This commit is contained in:
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
|
||||
|
||||
|
|
|
@ -661,9 +661,6 @@ class Session(Closeable, SubListener, DealerClient.MessageListener):
|
|||
class Builder(AbsBuilder):
|
||||
login_credentials: Authentication.LoginCredentials = None
|
||||
|
||||
def __init__(self, conf: Session.Configuration = None):
|
||||
super().__init__(conf)
|
||||
|
||||
def stored(self):
|
||||
pass
|
||||
|
||||
|
|
|
@ -19,5 +19,4 @@ class SpotifyId:
|
|||
pass
|
||||
|
||||
class SpotifyIdParsingException(Exception):
|
||||
def __init__(self, cause):
|
||||
super().__init__(cause)
|
||||
pass
|
||||
|
|
|
@ -4,8 +4,6 @@ from librespot.standard.InputStream import InputStream
|
|||
|
||||
|
||||
class DataInputStream(FilterInputStream, DataInput):
|
||||
def __init__(self, input_stream: InputStream):
|
||||
super().__init__(input_stream)
|
||||
|
||||
def read(self,
|
||||
b: bytearray = None,
|
||||
|
|
Loading…
Reference in New Issue