From: Brian Warner Date: Mon, 29 Jun 2009 20:03:41 +0000 (-0700) Subject: remove trailing whitespace from some util classes X-Git-Tag: trac-4000~55 X-Git-Url: https://git.rkrishnan.org/%5B/%5D%20/uri/reliability?a=commitdiff_plain;h=dddc2d03785f36a09f7fa52d6d09608d6280a101;p=tahoe-lafs%2Ftahoe-lafs.git remove trailing whitespace from some util classes --- diff --git a/src/allmydata/util/dictutil.py b/src/allmydata/util/dictutil.py index 11c0c743..2eee85a6 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 e60505f8..97d37066 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]