diff options
author | Chris Larson <chris_larson@mentor.com> | 2010-06-10 09:43:39 -0700 |
---|---|---|
committer | Richard Purdie <rpurdie@linux.intel.com> | 2010-07-02 15:41:36 +0100 |
commit | 8f9bdd68de7de629928a7d17d0b3772d979d281a (patch) | |
tree | f8f768d4ecd6dfbe29cbbccad3ef83c8bd55552a /bitbake | |
parent | 0c5b5b21f784bf3a05cd95c4162a595590cab9cc (diff) | |
download | poky-8f9bdd68de7de629928a7d17d0b3772d979d281a.tar.gz |
Use PendingDeprecationWarning for functions moved from bb to bb.utils
This is necessary, as there has not yet been a release with the bb.utils
versions in place. We can't show them a deprecation warning when they can't
safely change it yet. Show a PendingDeprecationWarning until 1.10 releases
and OE requires it, then we can move to DeprecationWarning.
(Bitbake rev: 43700fa1ca1d2635de4ed46110057cb164ee82d1)
Signed-off-by: Chris Larson <chris_larson@mentor.com>
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
Diffstat (limited to 'bitbake')
-rw-r--r-- | bitbake/lib/bb/__init__.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/bitbake/lib/bb/__init__.py b/bitbake/lib/bb/__init__.py index e4a970c640..88adfc1dfa 100644 --- a/bitbake/lib/bb/__init__.py +++ b/bitbake/lib/bb/__init__.py | |||
@@ -70,7 +70,7 @@ def deprecated(func, name = None, advice = ""): | |||
70 | def newFunc(*args, **kwargs): | 70 | def newFunc(*args, **kwargs): |
71 | warnings.warn("Call to deprecated function %s%s." % (name, | 71 | warnings.warn("Call to deprecated function %s%s." % (name, |
72 | advice), | 72 | advice), |
73 | category = DeprecationWarning, | 73 | category = PendingDeprecationWarning, |
74 | stacklevel = 2) | 74 | stacklevel = 2) |
75 | return func(*args, **kwargs) | 75 | return func(*args, **kwargs) |
76 | newFunc.__name__ = func.__name__ | 76 | newFunc.__name__ = func.__name__ |