From f31772e8778bc23cc3102f01c58f9fa95037284a Mon Sep 17 00:00:00 2001 From: Mark Florisson Date: Fri, 7 Aug 2015 14:55:49 +0100 Subject: [PATCH] Fix bug in integration test test_types --- cassandra/util.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/cassandra/util.py b/cassandra/util.py index 4cf3879e..0e8a818b 100644 --- a/cassandra/util.py +++ b/cassandra/util.py @@ -493,8 +493,7 @@ except ImportError: def __init__(self, iterable=()): self._items = [] - for i in iterable: - self.add(i) + self.update(iterable) def __len__(self): return len(self._items) @@ -567,6 +566,10 @@ except ImportError: else: self._items.append(item) + def update(self, iterable): + for i in iterable: + self.add(i) + def clear(self): del self._items[:]