]> code.ossystems Code Review - openembedded-core.git/commitdiff
Use PendingDeprecationWarning for functions moved from bb to bb.utils
authorChris Larson <chris_larson@mentor.com>
Thu, 10 Jun 2010 16:43:39 +0000 (09:43 -0700)
committerRichard Purdie <rpurdie@linux.intel.com>
Fri, 2 Jul 2010 14:41:36 +0000 (15:41 +0100)
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>
bitbake/lib/bb/__init__.py

index e4a970c640637bd099b161f21bb1569d6e270433..88adfc1dfaddaff8abe5b12534c37bb7896bf95c 100644 (file)
@@ -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__