kokarare1212 / librespot-python

Unused variable found PYL-W0612
Anti-pattern
Major
3 years ago3 years old
Unused variable 't'
266    def load_key(self, key: bytes) -> None:
267        i: int
268        j: int
269        t: int270        padding_size = int((len(key) + 3) / 4) * 4 - len(key)
271        key = key + (b"\ " * padding_size) + struct.pack("<I", len(key))
272        for i in range(0, len(key), 4):
Unused variable 'j'
265
266    def load_key(self, key: bytes) -> None:
267        i: int
268        j: int269        t: int
270        padding_size = int((len(key) + 3) / 4) * 4 - len(key)
271        key = key + (b"\ " * padding_size) + struct.pack("<I", len(key))
Unused variable 'address'
258
259        def run(self):
260            while not self.__should_stop:
261                __socket, address = self.__socket.accept()262
263                def anonymous():
264                    self.__handle(__socket)