From ceced11ae8eccd3f0646fadeb0bfa29c3c62e694 Mon Sep 17 00:00:00 2001 From: Jarrod Johnson Date: Mon, 14 Oct 2019 16:28:32 -0400 Subject: [PATCH] Fix python3 compatibility issue --- confluent_server/confluent/config/configmanager.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/confluent_server/confluent/config/configmanager.py b/confluent_server/confluent/config/configmanager.py index 3596a0ee..0fbdcf7d 100644 --- a/confluent_server/confluent/config/configmanager.py +++ b/confluent_server/confluent/config/configmanager.py @@ -482,7 +482,7 @@ def crypt_value(value, crypter = AES.new(key, AES.MODE_GCM, nonce=iv) value = confluent.util.stringify(value).encode('utf-8') cryptval, hmac = crypter.encrypt_and_digest(value) - return iv, cryptval, hmac, '\x02' + return iv, cryptval, hmac, b'\x02' def _load_dict_from_dbm(dpath, tdb):