Merge pull request #11 from kokarare1212/deepsource-fix-cbd3de2b
Remove methods with unnecessary super delegation.
This commit is contained in:
commit
9d8ecbbc1b
|
@ -222,9 +222,6 @@ class AbsChunkedInputStream(InputStream, HaltListener):
|
||||||
return self._decoded_length
|
return self._decoded_length
|
||||||
|
|
||||||
class ChunkException(IOError):
|
class ChunkException(IOError):
|
||||||
def __init__(self, cause):
|
|
||||||
super().__init__(cause)
|
|
||||||
|
|
||||||
@staticmethod
|
@staticmethod
|
||||||
def from_stream_error(stream_error: int):
|
def from_stream_error(stream_error: int):
|
||||||
return AbsChunkedInputStream.ChunkException(
|
return AbsChunkedInputStream.ChunkException(
|
||||||
|
|
|
@ -107,5 +107,4 @@ class AudioKeyManager(PacketsReceiver):
|
||||||
return self.reference.get(block=False)
|
return self.reference.get(block=False)
|
||||||
|
|
||||||
class AesKeyException(IOError):
|
class AesKeyException(IOError):
|
||||||
def __init__(self, ex):
|
pass
|
||||||
super().__init__(ex)
|
|
||||||
|
|
|
@ -83,8 +83,7 @@ class CdnManager:
|
||||||
"Could not retrieve CDN url! result: {}".format(proto.result))
|
"Could not retrieve CDN url! result: {}".format(proto.result))
|
||||||
|
|
||||||
class CdnException(Exception):
|
class CdnException(Exception):
|
||||||
def __init__(self, ex):
|
pass
|
||||||
super().__init__(ex)
|
|
||||||
|
|
||||||
class InternalResponse:
|
class InternalResponse:
|
||||||
_buffer: bytearray
|
_buffer: bytearray
|
||||||
|
@ -270,9 +269,6 @@ class CdnManager:
|
||||||
self.streamer: CdnManager.Streamer = streamer
|
self.streamer: CdnManager.Streamer = streamer
|
||||||
super().__init__(retry_on_chunk_error)
|
super().__init__(retry_on_chunk_error)
|
||||||
|
|
||||||
def close(self) -> None:
|
|
||||||
super().close()
|
|
||||||
|
|
||||||
def buffer(self) -> list[bytearray]:
|
def buffer(self) -> list[bytearray]:
|
||||||
return self.streamer._buffer
|
return self.streamer._buffer
|
||||||
|
|
||||||
|
|
|
@ -661,9 +661,6 @@ class Session(Closeable, SubListener, DealerClient.MessageListener):
|
||||||
class Builder(AbsBuilder):
|
class Builder(AbsBuilder):
|
||||||
login_credentials: Authentication.LoginCredentials = None
|
login_credentials: Authentication.LoginCredentials = None
|
||||||
|
|
||||||
def __init__(self, conf: Session.Configuration = None):
|
|
||||||
super().__init__(conf)
|
|
||||||
|
|
||||||
def stored(self):
|
def stored(self):
|
||||||
pass
|
pass
|
||||||
|
|
||||||
|
|
|
@ -19,5 +19,4 @@ class SpotifyId:
|
||||||
pass
|
pass
|
||||||
|
|
||||||
class SpotifyIdParsingException(Exception):
|
class SpotifyIdParsingException(Exception):
|
||||||
def __init__(self, cause):
|
pass
|
||||||
super().__init__(cause)
|
|
||||||
|
|
|
@ -4,9 +4,6 @@ from librespot.standard.InputStream import InputStream
|
||||||
|
|
||||||
|
|
||||||
class DataInputStream(FilterInputStream, DataInput):
|
class DataInputStream(FilterInputStream, DataInput):
|
||||||
def __init__(self, input_stream: InputStream):
|
|
||||||
super().__init__(input_stream)
|
|
||||||
|
|
||||||
def read(self,
|
def read(self,
|
||||||
b: bytearray = None,
|
b: bytearray = None,
|
||||||
offset: int = None,
|
offset: int = None,
|
||||||
|
|
Loading…
Reference in New Issue