Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Malte L
gajim-plugins
Commits
beadae62
Commit
beadae62
authored
Dec 15, 2018
by
Philipp Hörist
Browse files
[omemo] Remove python2 compat code
parent
baefb772
Changes
1
Hide whitespace changes
Inline
Side-by-side
omemo/omemo/aes_gcm.py
View file @
beadae62
...
...
@@ -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
):
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment