Signed-off-by: Aaron Bauman <b...@gentoo.org> --- lib/portage/elog/messages.py | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-)
diff --git a/lib/portage/elog/messages.py b/lib/portage/elog/messages.py index 3731e6c4d..dd93e2f88 100644 --- a/lib/portage/elog/messages.py +++ b/lib/portage/elog/messages.py @@ -1,5 +1,5 @@ # elog/messages.py - elog core functions -# Copyright 2006-2011 Gentoo Foundation +# Copyright 2006-2020 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 import portage @@ -27,7 +27,7 @@ _log_levels = frozenset([ ]) def collect_ebuild_messages(path): - """ Collect elog messages generated by the bash logging function stored + """ Collect elog messages generated by the bash logging function stored at 'path'. """ mylogfiles = None @@ -70,7 +70,7 @@ def collect_ebuild_messages(path): if lastmsgtype is None: lastmsgtype = msgtype - + if msgtype == lastmsgtype: msgcontent.append(msg) else: @@ -92,7 +92,7 @@ def collect_ebuild_messages(path): _msgbuffer = {} def _elog_base(level, msg, phase="other", key=None, color=None, out=None): - """ Backend for the other messaging functions, should not be called + """ Backend for the other messaging functions, should not be called directly. """ @@ -157,11 +157,11 @@ def collect_messages(key=None, phasefilter=None): return rValue def _reset_buffer(): - """ Reset the internal message buffer when it has been processed, + """ Reset the internal message buffer when it has been processed, should not be called directly. """ global _msgbuffer - + _msgbuffer = {} # creating and exporting the actual messaging functions @@ -180,7 +180,7 @@ class _make_msgfunction: def __call__(self, msg, phase="other", key=None, out=None): """ Display and log a message assigned to the given key/cpv. - """ + """ _elog_base(self._level, msg, phase=phase, key=key, color=self._color, out=out) -- 2.28.0