summaryrefslogtreecommitdiffstats
path: root/lib/bb/persist_data.py
diff options
context:
space:
mode:
authorChris Larson <chris_larson@mentor.com>2011-02-11 21:26:51 -0700
committerChris Larson <chris_larson@mentor.com>2011-02-11 21:26:53 -0700
commit67a55a6b45fec300bea42c18be41cf0a2f931072 (patch)
treeb411aa119c9844faaaa605b083466adb4fb30e34 /lib/bb/persist_data.py
parent01d12f4f96447aeda48e504fb0708c2e0dc91e30 (diff)
downloadbitbake-contrib-67a55a6b45fec300bea42c18be41cf0a2f931072.tar.gz
Enable some DeprecationWarnings
We'll be skipping the Pending Deprecation step given our release process. Signed-off-by: Chris Larson <chris_larson@mentor.com>
Diffstat (limited to 'lib/bb/persist_data.py')
-rw-r--r--lib/bb/persist_data.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/bb/persist_data.py b/lib/bb/persist_data.py
index 2c424f29b..bd60fca7c 100644
--- a/lib/bb/persist_data.py
+++ b/lib/bb/persist_data.py
@@ -106,8 +106,9 @@ class SQLTable(collections.MutableMapping):
class PersistData(object):
"""Deprecated representation of the bitbake persistent data store"""
def __init__(self, d):
- warnings.warn("Use of PersistData will be deprecated in the future",
- category=PendingDeprecationWarning,
+ warnings.warn("Use of PersistData is deprecated. Please use "
+ "persist(domain, d) instead.",
+ category=DeprecationWarning,
stacklevel=2)
self.data = persist(d)