Add in this level of values only, as a property.

This commit is contained in:
Mike Auty
2016-01-13 00:10:25 +00:00
parent fc3559e5c7
commit e2e754edeb
@@ -81,6 +81,10 @@ class HierarchicalDict(collections.Mapping):
def separator(self):
return self._separator
@property
def data(self):
return self._data.copy()
def _key_head(self, key):
"""Returns the first division of a key based on the dict separator,
or the full key if the separator is not present