diff options
author | Chris Larson <chris_larson@mentor.com> | 2011-02-11 21:26:51 -0700 |
---|---|---|
committer | Chris Larson <chris_larson@mentor.com> | 2011-02-11 21:26:53 -0700 |
commit | 67a55a6b45fec300bea42c18be41cf0a2f931072 (patch) | |
tree | b411aa119c9844faaaa605b083466adb4fb30e34 /lib/bb/__init__.py | |
parent | 01d12f4f96447aeda48e504fb0708c2e0dc91e30 (diff) | |
download | bitbake-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/__init__.py')
-rw-r--r-- | lib/bb/__init__.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/bb/__init__.py b/lib/bb/__init__.py index 0f22d15af..d060002b2 100644 --- a/lib/bb/__init__.py +++ b/lib/bb/__init__.py @@ -96,7 +96,7 @@ def fatal(*args): sys.exit(1) -def deprecated(func, name = None, advice = ""): +def deprecated(func, name=None, advice=""): """This is a decorator which can be used to mark functions as deprecated. It will result in a warning being emmitted when the function is used.""" @@ -110,8 +110,8 @@ def deprecated(func, name = None, advice = ""): def newFunc(*args, **kwargs): warnings.warn("Call to deprecated function %s%s." % (name, advice), - category = PendingDeprecationWarning, - stacklevel = 2) + category=DeprecationWarning, + stacklevel=2) return func(*args, **kwargs) newFunc.__name__ = func.__name__ newFunc.__doc__ = func.__doc__ |