aboutsummaryrefslogtreecommitdiffstats
path: root/netlib/odict.py
diff options
context:
space:
mode:
Diffstat (limited to 'netlib/odict.py')
-rw-r--r--netlib/odict.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/netlib/odict.py b/netlib/odict.py
index 7a2f611b..7a54f282 100644
--- a/netlib/odict.py
+++ b/netlib/odict.py
@@ -108,6 +108,12 @@ class ODict(object):
lst = copy.deepcopy(self.lst)
return self.__class__(lst)
+ def extend(self, other):
+ """
+ Add the contents of other, preserving any duplicates.
+ """
+ self.lst.extend(other.lst)
+
def __repr__(self):
elements = []
for itm in self.lst: