]> code.ossystems Code Review - openembedded-core.git/commitdiff
Drop 'fn' arguments to bb.msg functions
authorChris Larson <chris_larson@mentor.com>
Sat, 4 Sep 2010 01:49:02 +0000 (18:49 -0700)
committerRichard Purdie <rpurdie@linux.intel.com>
Tue, 4 Jan 2011 14:46:34 +0000 (14:46 +0000)
(Bitbake rev: 8341458e3d21b45db84e46bd32f8ad270000ce3c)

Signed-off-by: Chris Larson <chris_larson@mentor.com>
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
bitbake/lib/bb/msg.py

index e495ee6e461e5d4d9cae3e63f5fcd6f2bb4e398c..b876219da67abe54419001badf3eb962b00c830b 100644 (file)
@@ -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: