2
0
mirror of https://github.com/ComradCollective/Comrad synced 2024-11-05 21:20:51 +00:00

Merge branch 'keychain-uses-objects' of github.com:Komrade/Komrade into keychain-uses-objects

This commit is contained in:
Ryan Heuser 2020-09-13 08:02:05 -04:00
commit 31f8843184

View File

@ -115,13 +115,7 @@ class Crypt(Logger):
return k_b
def has(self,k,prefix=''):
k_b=self.package_key(k,prefix=prefix)
k_b_hash = self.hash(k_b)
try:
v=self.store.get(k_b_hash)
return True
except KeyError:
return False
return bool(self.get(k,prefix=prefix))
def set(self,k,v,prefix='',override=False):