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