summaryrefslogtreecommitdiffstats
path: root/lib/bb/data_dict.py
diff options
context:
space:
mode:
Diffstat (limited to 'lib/bb/data_dict.py')
-rw-r--r--lib/bb/data_dict.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/lib/bb/data_dict.py b/lib/bb/data_dict.py
index 8c6f3d836..22dfdf2fe 100644
--- a/lib/bb/data_dict.py
+++ b/lib/bb/data_dict.py
@@ -25,7 +25,7 @@ Place, Suite 330, Boston, MA 02111-1307 USA.
Based on functions from the base bb module, Copyright 2003 Holger Schurig
"""
-import os, re, sys, types
+import os, re, sys, types, copy
from bb import note, debug, fatal
__setvar_regexp__ = {}
@@ -152,6 +152,9 @@ class DataDict:
if var in self.dict and "flags" in self.dict[var]:
del self.dict[var]["flags"]
+ def createCopy(self):
+ return copy.deepcopy(self)
+
# Dictionary Methods
def keys(self):
return self.dict.keys()