From ab05d7fc10cd97c9ffa2d67fd30b015bdb8e687c Mon Sep 17 00:00:00 2001 From: quadrismegistus Date: Mon, 7 Sep 2020 14:30:35 +0100 Subject: [PATCH] finally! abolishing private key property --- komrade/backend/the_operator.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/komrade/backend/the_operator.py b/komrade/backend/the_operator.py index 06cae78..1450323 100644 --- a/komrade/backend/the_operator.py +++ b/komrade/backend/the_operator.py @@ -262,14 +262,14 @@ def init_operators(): print('store in web =',THIRD_PARTY_DICT) print() + import pickle with open(PATH_BUILTIN_KEYCHAIN,'wb') as of: - of.write(THIRD_PARTY_DICT) + pickle.dump(STORE_IN_APP,of) with open(PATH_OPERATOR_WEB_KEYS_FILE,'wb') as of: - of.write(THIRD_PARTY_DICT) + pickle.dump(THIRD_PARTY_DICT,of) - def test_op(): from komrade.backend.the_telephone import TheTelephone