Commit beadae62 authored by Philipp Hörist's avatar Philipp Hörist

[omemo] Remove python2 compat code

parent baefb772
......@@ -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):
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment