X-Git-Url: http://git.bitcoin.ninja/index.cgi?a=blobdiff_plain;f=youtube_dl%2Faes.py;fp=youtube_dl%2Faes.py;h=a01c367de4f6cf5e6f9ce4d9b86de4991fa859dc;hb=080e09557d0c323a9abf5f72e9d307f8bb545be6;hp=7817adcfdd546f70cfb76e0634b8df8ddbcaf8e0;hpb=fca2e6d5a6fd402bc14dd381c1060f6a2cc38eb8;p=youtube-dl 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):