* pythonish
This commit is contained in:
@@ -193,7 +193,7 @@ class ItemByRepoDB(object):
|
|||||||
repostr = self.repo_str(repo)
|
repostr = self.repo_str(repo)
|
||||||
if s.has_key(repostr):
|
if s.has_key(repostr):
|
||||||
del s[repostr]
|
del s[repostr]
|
||||||
if (len(s)==0):
|
if not len(s):
|
||||||
self.d.delete(name, txn)
|
self.d.delete(name, txn)
|
||||||
else:
|
else:
|
||||||
self.d.put(name, s, txn)
|
self.d.put(name, s, txn)
|
||||||
|
|||||||
Reference in New Issue
Block a user