diff options
author | Chris Larson <chris_larson@mentor.com> | 2011-02-11 21:26:51 -0700 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2011-05-06 18:24:13 +0100 |
commit | 0788081ac7a04f94c349b2673ed6ae122aa7d1a8 (patch) | |
tree | 250ed0b8dd782a1d8b089588d48b84396d9bd26d /bitbake | |
parent | 0cc52efc8c26bd48b7d9c4bac36f11a2663a7578 (diff) | |
download | ast2050-yocto-poky-0788081ac7a04f94c349b2673ed6ae122aa7d1a8.zip ast2050-yocto-poky-0788081ac7a04f94c349b2673ed6ae122aa7d1a8.tar.gz |
Enable some DeprecationWarnings
We'll be skipping the Pending Deprecation step given our release process.
(Bitbake rev: 67a55a6b45fec300bea42c18be41cf0a2f931072)
Signed-off-by: Chris Larson <chris_larson@mentor.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bitbake')
-rw-r--r-- | bitbake/lib/bb/msg.py | 22 |
1 files changed, 10 insertions, 12 deletions
diff --git a/bitbake/lib/bb/msg.py b/bitbake/lib/bb/msg.py index 1f9ff90..a7ac850 100644 --- a/bitbake/lib/bb/msg.py +++ b/bitbake/lib/bb/msg.py @@ -147,8 +147,8 @@ def set_debug_domains(domainargs): # def debug(level, msgdomain, msg): - warnings.warn("bb.msg.debug will soon be deprecated in favor of the python 'logging' module", - PendingDeprecationWarning, stacklevel=2) + warnings.warn("bb.msg.debug is deprecated in favor of the python 'logging' module", + DeprecationWarning, stacklevel=2) level = logging.DEBUG - (level - 1) if not msgdomain: logger.debug(level, msg) @@ -156,13 +156,13 @@ def debug(level, msgdomain, msg): loggers[msgdomain].debug(level, msg) def plain(msg): - warnings.warn("bb.msg.plain will soon be deprecated in favor of the python 'logging' module", - PendingDeprecationWarning, stacklevel=2) + warnings.warn("bb.msg.plain is deprecated in favor of the python 'logging' module", + DeprecationWarning, stacklevel=2) logger.plain(msg) def note(level, msgdomain, msg): - warnings.warn("bb.msg.note will soon be deprecated in favor of the python 'logging' module", - PendingDeprecationWarning, stacklevel=2) + warnings.warn("bb.msg.note is deprecated in favor of the python 'logging' module", + DeprecationWarning, stacklevel=2) if level > 1: if msgdomain: logger.verbose(msg) @@ -175,24 +175,22 @@ def note(level, msgdomain, msg): loggers[msgdomain].info(msg) def warn(msgdomain, msg): - warnings.warn("bb.msg.warn will soon be deprecated in favor of the python 'logging' module", - PendingDeprecationWarning, stacklevel=2) + warnings.warn("bb.msg.warn is deprecated in favor of the python 'logging' module", + DeprecationWarning, stacklevel=2) if not msgdomain: logger.warn(msg) else: loggers[msgdomain].warn(msg) def error(msgdomain, msg): - warnings.warn("bb.msg.error will soon be deprecated in favor of the python 'logging' module", - PendingDeprecationWarning, stacklevel=2) + warnings.warn("bb.msg.error is deprecated in favor of the python 'logging' module", + DeprecationWarning, stacklevel=2) if not msgdomain: logger.error(msg) else: loggers[msgdomain].error(msg) def fatal(msgdomain, msg): - warnings.warn("bb.msg.fatal will soon be deprecated in favor of raising appropriate exceptions", - PendingDeprecationWarning, stacklevel=2) if not msgdomain: logger.critical(msg) else: |