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:
commit
31f8843184
@ -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):
|
||||
|
Loading…
Reference in New Issue
Block a user