diff --git a/src/allmydata/util/dictutil.py b/src/allmydata/util/dictutil.py index 11c0c7438..2eee85a62 100644 --- a/src/allmydata/util/dictutil.py +++ b/src/allmydata/util/dictutil.py @@ -348,7 +348,7 @@ def del_if_present(d, k): class ValueOrderedDict: """ Note: this implementation assumes that the values do not mutate and change - their sort order. That is, it stores the values in a sorted list and + their sort order. That is, it stores the values in a sorted list and as items are added and removed from the dict, it makes updates to the list which will keep the list sorted. But if a value that is currently sitting in the list changes its sort order, then the internal consistency of this diff --git a/src/allmydata/util/nummedobj.py b/src/allmydata/util/nummedobj.py index e60505f84..97d37066c 100644 --- a/src/allmydata/util/nummedobj.py +++ b/src/allmydata/util/nummedobj.py @@ -19,7 +19,7 @@ class NummedObj(object): if klass is None: klass = self.__class__ self._classname = klass.__name__ - + NummedObj.objnums.inc(self._classname) self._objid = NummedObj.objnums[self._classname]