projects
/
youtube-dl
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
fca2e6d
)
[aes] Switch to new-style classes
author
Sergey M․
<dstftw@gmail.com>
Sun, 14 Feb 2016 08:01:43 +0000
(14:01 +0600)
committer
Sergey M․
<dstftw@gmail.com>
Sun, 14 Feb 2016 08:01:43 +0000
(14:01 +0600)
youtube_dl/aes.py
patch
|
blob
|
history
diff --git
a/youtube_dl/aes.py
b/youtube_dl/aes.py
index 7817adcfdd546f70cfb76e0634b8df8ddbcaf8e0..a01c367de4f6cf5e6f9ce4d9b86de4991fa859dc 100644
(file)
--- 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):