diff options
author | Chris St. Pierre <chris.a.st.pierre@gmail.com> | 2013-06-19 15:00:46 -0400 |
---|---|---|
committer | Chris St. Pierre <chris.a.st.pierre@gmail.com> | 2013-06-19 15:00:46 -0400 |
commit | 161603cd3dce7f4e0e5f50c9435e69b500085e1a (patch) | |
tree | c3569ef2a3fbbf988ad9c576db38487d03adc57a /src/lib | |
parent | 7d53dd1afe826fc6537d3a747fb3737cd011dec6 (diff) | |
download | bcfg2-161603cd3dce7f4e0e5f50c9435e69b500085e1a.tar.gz bcfg2-161603cd3dce7f4e0e5f50c9435e69b500085e1a.tar.bz2 bcfg2-161603cd3dce7f4e0e5f50c9435e69b500085e1a.zip |
Utils: PackedDigitRange __len__() breaks with open-ended ranges
Diffstat (limited to 'src/lib')
-rw-r--r-- | src/lib/Bcfg2/Utils.py | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/src/lib/Bcfg2/Utils.py b/src/lib/Bcfg2/Utils.py index 1c2dceed2..9f46582c4 100644 --- a/src/lib/Bcfg2/Utils.py +++ b/src/lib/Bcfg2/Utils.py @@ -81,9 +81,6 @@ class PackedDigitRange(object): # pylint: disable=E0012,R0924 def __str__(self): return "[%s]" % self.str - def __len__(self): - return sum(r[1] - r[0] + 1 for r in self.ranges) + len(self.ints) - def locked(fd): """ Acquire a lock on a file. |