summaryrefslogtreecommitdiffstats
path: root/bitbake/lib/bb/msg.py
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/lib/bb/msg.py
parent55c0b36e36a0d6a1f4bfdbc076bc0d8eac15a2c4 (diff)
downloadpoky-fc27334d1a26efdeab734c80c3afcd5ecbc41de7.tar.gz
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/lib/bb/msg.py')
-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 e495ee6e46..b876219da6 100644
--- a/bitbake/lib/bb/msg.py
+++ b/bitbake/lib/bb/msg.py
@@ -109,7 +109,7 @@ def set_debug_domains(domainargs):
109# Message handling functions 109# Message handling functions
110# 110#
111 111
112def debug(level, msgdomain, msg, fn = None): 112def debug(level, msgdomain, msg):
113 warnings.warn("bb.msg.debug will soon be deprecated in favor of the python 'logging' module", 113 warnings.warn("bb.msg.debug will soon be deprecated in favor of the python 'logging' module",
114 PendingDeprecationWarning, stacklevel=2) 114 PendingDeprecationWarning, stacklevel=2)
115 level = logging.DEBUG - (level - 1) 115 level = logging.DEBUG - (level - 1)
@@ -118,12 +118,12 @@ def debug(level, msgdomain, msg, fn = None):
118 else: 118 else:
119 loggers[msgdomain].debug(level, msg) 119 loggers[msgdomain].debug(level, msg)
120 120
121def plain(msg, fn = None): 121def plain(msg):
122 warnings.warn("bb.msg.plain will soon be deprecated in favor of the python 'logging' module", 122 warnings.warn("bb.msg.plain will soon be deprecated in favor of the python 'logging' module",
123 PendingDeprecationWarning, stacklevel=2) 123 PendingDeprecationWarning, stacklevel=2)
124 logger.plain(msg) 124 logger.plain(msg)
125 125
126def note(level, msgdomain, msg, fn = None): 126def note(level, msgdomain, msg):
127 warnings.warn("bb.msg.note will soon be deprecated in favor of the python 'logging' module", 127 warnings.warn("bb.msg.note will soon be deprecated in favor of the python 'logging' module",
128 PendingDeprecationWarning, stacklevel=2) 128 PendingDeprecationWarning, stacklevel=2)
129 if level > 1: 129 if level > 1:
@@ -136,8 +136,8 @@ def note(level, msgdomain, msg, fn = None):
136 logger.info(msg) 136 logger.info(msg)
137 else: 137 else:
138 loggers[msgdomain].info(msg) 138 loggers[msgdomain].info(msg)
139 139
140def warn(msgdomain, msg, fn = None): 140def warn(msgdomain, msg):
141 warnings.warn("bb.msg.warn will soon be deprecated in favor of the python 'logging' module", 141 warnings.warn("bb.msg.warn will soon be deprecated in favor of the python 'logging' module",
142 PendingDeprecationWarning, stacklevel=2) 142 PendingDeprecationWarning, stacklevel=2)
143 if not msgdomain: 143 if not msgdomain:
@@ -145,7 +145,7 @@ def warn(msgdomain, msg, fn = None):
145 else: 145 else:
146 loggers[msgdomain].warn(msg) 146 loggers[msgdomain].warn(msg)
147 147
148def error(msgdomain, msg, fn = None): 148def error(msgdomain, msg):
149 warnings.warn("bb.msg.error will soon be deprecated in favor of the python 'logging' module", 149 warnings.warn("bb.msg.error will soon be deprecated in favor of the python 'logging' module",
150 PendingDeprecationWarning, stacklevel=2) 150 PendingDeprecationWarning, stacklevel=2)
151 if not msgdomain: 151 if not msgdomain:
@@ -153,7 +153,7 @@ def error(msgdomain, msg, fn = None):
153 else: 153 else:
154 loggers[msgdomain].error(msg) 154 loggers[msgdomain].error(msg)
155 155
156def fatal(msgdomain, msg, fn = None): 156def fatal(msgdomain, msg):
157 warnings.warn("bb.msg.fatal will soon be deprecated in favor of raising appropriate exceptions", 157 warnings.warn("bb.msg.fatal will soon be deprecated in favor of raising appropriate exceptions",
158 PendingDeprecationWarning, stacklevel=2) 158 PendingDeprecationWarning, stacklevel=2)
159 if not msgdomain: 159 if not msgdomain: