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