From 88204c0999c49b79c6cf63a15f29dee5eadc31d6 Mon Sep 17 00:00:00 2001 From: Mike Crute Date: Sun, 7 Apr 2019 18:09:23 +0000 Subject: Remove python2 hack --- pandora/transport.py | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/pandora/transport.py b/pandora/transport.py index 721882d..edec8a8 100644 --- a/pandora/transport.py +++ b/pandora/transport.py @@ -256,10 +256,7 @@ class BlowfishCryptor: @staticmethod def _strip_padding(data): - try: - pad_size = int(data[-1]) # python3 - except ValueError: # pragma: no cover - pad_size = ord(data[-1]) # python2 + pad_size = int(data[-1]) computed = b"".join([chr(pad_size).encode("ascii")] * pad_size) if not data[-pad_size:] == computed: -- cgit v1.2.3