From: Sergey M․ Date: Sun, 14 Feb 2016 08:01:43 +0000 (+0600) Subject: [aes] Switch to new-style classes X-Git-Url: https://git.cielonegro.org/gitweb.cgi?a=commitdiff_plain;h=080e09557d0c323a9abf5f72e9d307f8bb545be6;p=youtube-dl.git [aes] Switch to new-style classes --- diff --git a/youtube_dl/aes.py b/youtube_dl/aes.py index 7817adcfd..a01c367de 100644 --- a/youtube_dl/aes.py +++ b/youtube_dl/aes.py @@ -161,7 +161,7 @@ def aes_decrypt_text(data, password, key_size_bytes): nonce = data[:NONCE_LENGTH_BYTES] cipher = data[NONCE_LENGTH_BYTES:] - class Counter: + class Counter(object): __value = nonce + [0] * (BLOCK_SIZE_BYTES - NONCE_LENGTH_BYTES) def next_value(self):