summaryrefslogtreecommitdiff
path: root/obnamlib/fmt_ga/leaf.py
diff options
context:
space:
mode:
Diffstat (limited to 'obnamlib/fmt_ga/leaf.py')
-rw-r--r--obnamlib/fmt_ga/leaf.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/obnamlib/fmt_ga/leaf.py b/obnamlib/fmt_ga/leaf.py
index 6522a6a9..7f293cc3 100644
--- a/obnamlib/fmt_ga/leaf.py
+++ b/obnamlib/fmt_ga/leaf.py
@@ -1,4 +1,4 @@
-# Copyright 2016 Lars Wirzenius
+# Copyright 2016-2017 Lars Wirzenius
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
@@ -36,6 +36,10 @@ class CowLeaf(object):
def insert(self, key, value):
self._dict[key] = value
+ def remove(self, key):
+ if key in self._dict:
+ del self._dict[key]
+
def as_dict(self):
return copy.deepcopy(self._dict)