From fc27334d1a26efdeab734c80c3afcd5ecbc41de7 Mon Sep 17 00:00:00 2001 From: Chris Larson Date: Fri, 3 Sep 2010 18:49:02 -0700 Subject: Drop 'fn' arguments to bb.msg functions (Bitbake rev: 8341458e3d21b45db84e46bd32f8ad270000ce3c) Signed-off-by: Chris Larson Signed-off-by: Richard Purdie --- bitbake/lib/bb/msg.py | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'bitbake/lib') 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: -- cgit v1.2.3