diff options
Diffstat (limited to 'larch/refcountstore.py')
-rw-r--r-- | larch/refcountstore.py | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/larch/refcountstore.py b/larch/refcountstore.py index 0aea53e..18fb9e7 100644 --- a/larch/refcountstore.py +++ b/larch/refcountstore.py @@ -78,11 +78,7 @@ class RefcountStore(object): def set_refcount(self, node_id, refcount): '''Set the reference count for a given node.''' tracing.trace('setting refcoutn for %s to %s' % (node_id, refcount)) - if refcount == 0: - if node_id in self.refcounts: - del self.refcounts[node_id] - else: - self.refcounts[node_id] = refcount + self.refcounts[node_id] = refcount self.dirty.add(node_id) def save_refcounts(self): |