summaryrefslogtreecommitdiffstats
path: root/src/lib
diff options
context:
space:
mode:
authorChris St. Pierre <chris.a.st.pierre@gmail.com>2013-06-19 15:00:46 -0400
committerChris St. Pierre <chris.a.st.pierre@gmail.com>2013-06-19 15:00:46 -0400
commit161603cd3dce7f4e0e5f50c9435e69b500085e1a (patch)
treec3569ef2a3fbbf988ad9c576db38487d03adc57a /src/lib
parent7d53dd1afe826fc6537d3a747fb3737cd011dec6 (diff)
downloadbcfg2-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.py3
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.