mirror of
https://git.yoctoproject.org/git/poky
synced 2026-01-04 16:10:04 +00:00
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>
This commit is contained in:
parent
0c5b5b21f7
commit
8f9bdd68de
|
|
@ -70,7 +70,7 @@ def deprecated(func, name = None, advice = ""):
|
|||
def newFunc(*args, **kwargs):
|
||||
warnings.warn("Call to deprecated function %s%s." % (name,
|
||||
advice),
|
||||
category = DeprecationWarning,
|
||||
category = PendingDeprecationWarning,
|
||||
stacklevel = 2)
|
||||
return func(*args, **kwargs)
|
||||
newFunc.__name__ = func.__name__
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user