[omemo] Remove python2 compat code
This commit is contained in:
@@ -32,11 +32,7 @@ def encrypt(key, iv, plaintext):
|
|||||||
|
|
||||||
|
|
||||||
def decrypt(key, iv, ciphertext):
|
def decrypt(key, iv, ciphertext):
|
||||||
plaintext = aes_decrypt(key, iv, ciphertext).decode('utf-8')
|
return aes_decrypt(key, iv, ciphertext).decode('utf-8')
|
||||||
if sys.version_info < (3, 0):
|
|
||||||
return unicode(plaintext)
|
|
||||||
else:
|
|
||||||
return plaintext
|
|
||||||
|
|
||||||
|
|
||||||
class NoValidSessions(Exception):
|
class NoValidSessions(Exception):
|
||||||
|
|||||||
Reference in New Issue
Block a user