summaryrefslogtreecommitdiffstats
path: root/bitbake/lib/bb/data.py
diff options
context:
space:
mode:
authorChris Larson <chris_larson@mentor.com>2010-03-24 17:05:38 -0700
committerRichard Purdie <rpurdie@linux.intel.com>2010-07-02 15:41:33 +0100
commitcf58d41af881e64cef0c3cba2eaabf0ea71cc97b (patch)
treee41e486f44b37d443c80d456e16c1de418f58395 /bitbake/lib/bb/data.py
parent0b4ad7062b7586c17eed161060a03b3d2690341d (diff)
downloadpoky-cf58d41af881e64cef0c3cba2eaabf0ea71cc97b.tar.gz
Add some missing docstrings
(Bitbake rev: 20b6f2d1d2d4541e612e8cffbdf1ca4822a3e394) Signed-off-by: Chris Larson <chris_larson@mentor.com> Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
Diffstat (limited to 'bitbake/lib/bb/data.py')
-rw-r--r--bitbake/lib/bb/data.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/bitbake/lib/bb/data.py b/bitbake/lib/bb/data.py
index 554532841a..e11fe9833e 100644
--- a/bitbake/lib/bb/data.py
+++ b/bitbake/lib/bb/data.py
@@ -50,9 +50,12 @@ import bb
50_dict_type = data_smart.DataSmart 50_dict_type = data_smart.DataSmart
51 51
52def init(): 52def init():
53 """Return a new object representing the Bitbake data"""
53 return _dict_type() 54 return _dict_type()
54 55
55def init_db(parent = None): 56def init_db(parent = None):
57 """Return a new object representing the Bitbake data,
58 optionally based on an existing object"""
56 if parent: 59 if parent:
57 return parent.createCopy() 60 return parent.createCopy()
58 else: 61 else: