summaryrefslogtreecommitdiff
path: root/bitbake
diff options
context:
space:
mode:
authorChris Larson <chris_larson@mentor.com>2010-09-03 18:49:02 -0700
committerRichard Purdie <rpurdie@linux.intel.com>2011-01-04 14:46:34 +0000
commitfc27334d1a26efdeab734c80c3afcd5ecbc41de7 (patch)
tree3de5532338a09d8d05a1f2c6f24b8581cf4b15de /bitbake
parent55c0b36e36a0d6a1f4bfdbc076bc0d8eac15a2c4 (diff)
downloadopenembedded-core-fc27334d1a26efdeab734c80c3afcd5ecbc41de7.tar.gz
openembedded-core-fc27334d1a26efdeab734c80c3afcd5ecbc41de7.tar.bz2
openembedded-core-fc27334d1a26efdeab734c80c3afcd5ecbc41de7.tar.xz
openembedded-core-fc27334d1a26efdeab734c80c3afcd5ecbc41de7.zip
Drop 'fn' arguments to bb.msg functions
(Bitbake rev: 8341458e3d21b45db84e46bd32f8ad270000ce3c) 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/msg.py14
1 files changed, 7 insertions, 7 deletions
diff --git a/bitbake/lib/bb/msg.py b/bitbake/lib/bb/msg.py
index e495ee6e4..b876219da 100644
--- a/bitbake/lib/bb/msg.py
+++ b/bitbake/lib/bb/msg.py
@@ -109,7 +109,7 @@ def set_debug_domains(domainargs):
# Message handling functions
#
-def debug(level, msgdomain, msg, fn = None):
+def debug(level, msgdomain, msg):
warnings.warn("bb.msg.debug will soon be deprecated in favor of the python 'logging' module",
PendingDeprecationWarning, stacklevel=2)
level = logging.DEBUG - (level - 1)
@@ -118,12 +118,12 @@ def debug(level, msgdomain, msg, fn = None):
else:
loggers[msgdomain].debug(level, msg)
-def plain(msg, fn = None):
+def plain(msg):
warnings.warn("bb.msg.plain will soon be deprecated in favor of the python 'logging' module",
PendingDeprecationWarning, stacklevel=2)
logger.plain(msg)
-def note(level, msgdomain, msg, fn = None):
+def note(level, msgdomain, msg):
warnings.warn("bb.msg.note will soon be deprecated in favor of the python 'logging' module",
PendingDeprecationWarning, stacklevel=2)
if level > 1:
@@ -136,8 +136,8 @@ def note(level, msgdomain, msg, fn = None):
logger.info(msg)
else:
loggers[msgdomain].info(msg)
-
-def warn(msgdomain, msg, fn = None):
+
+def warn(msgdomain, msg):
warnings.warn("bb.msg.warn will soon be deprecated in favor of the python 'logging' module",
PendingDeprecationWarning, stacklevel=2)
if not msgdomain:
@@ -145,7 +145,7 @@ def warn(msgdomain, msg, fn = None):
else:
loggers[msgdomain].warn(msg)
-def error(msgdomain, msg, fn = None):
+def error(msgdomain, msg):
warnings.warn("bb.msg.error will soon be deprecated in favor of the python 'logging' module",
PendingDeprecationWarning, stacklevel=2)
if not msgdomain:
@@ -153,7 +153,7 @@ def error(msgdomain, msg, fn = None):
else:
loggers[msgdomain].error(msg)
-def fatal(msgdomain, msg, fn = None):
+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: