Gentoo Archives: gentoo-portage-dev

From: Aaron Bauman <bman@g.o>
To: gentoo-portage-dev@l.g.o
Cc: Aaron Bauman <bman@g.o>
Subject: [gentoo-portage-dev] [PATCH 14/68] lib/portage/elog/messages.py: fix whitespace
Date: Mon, 03 Aug 2020 22:44:27
Message-Id: 20200803224327.1593726-14-bman@gentoo.org
In Reply to: [gentoo-portage-dev] [PATCH 01/68] lib/portage/util/_dyn_libs/PreservedLibsRegistry.py: fix whitespace by Aaron Bauman
1 Signed-off-by: Aaron Bauman <bman@g.o>
2 ---
3 lib/portage/elog/messages.py | 14 +++++++-------
4 1 file changed, 7 insertions(+), 7 deletions(-)
5
6 diff --git a/lib/portage/elog/messages.py b/lib/portage/elog/messages.py
7 index 3731e6c4d..dd93e2f88 100644
8 --- a/lib/portage/elog/messages.py
9 +++ b/lib/portage/elog/messages.py
10 @@ -1,5 +1,5 @@
11 # elog/messages.py - elog core functions
12 -# Copyright 2006-2011 Gentoo Foundation
13 +# Copyright 2006-2020 Gentoo Authors
14 # Distributed under the terms of the GNU General Public License v2
15
16 import portage
17 @@ -27,7 +27,7 @@ _log_levels = frozenset([
18 ])
19
20 def collect_ebuild_messages(path):
21 - """ Collect elog messages generated by the bash logging function stored
22 + """ Collect elog messages generated by the bash logging function stored
23 at 'path'.
24 """
25 mylogfiles = None
26 @@ -70,7 +70,7 @@ def collect_ebuild_messages(path):
27
28 if lastmsgtype is None:
29 lastmsgtype = msgtype
30 -
31 +
32 if msgtype == lastmsgtype:
33 msgcontent.append(msg)
34 else:
35 @@ -92,7 +92,7 @@ def collect_ebuild_messages(path):
36
37 _msgbuffer = {}
38 def _elog_base(level, msg, phase="other", key=None, color=None, out=None):
39 - """ Backend for the other messaging functions, should not be called
40 + """ Backend for the other messaging functions, should not be called
41 directly.
42 """
43
44 @@ -157,11 +157,11 @@ def collect_messages(key=None, phasefilter=None):
45 return rValue
46
47 def _reset_buffer():
48 - """ Reset the internal message buffer when it has been processed,
49 + """ Reset the internal message buffer when it has been processed,
50 should not be called directly.
51 """
52 global _msgbuffer
53 -
54 +
55 _msgbuffer = {}
56
57 # creating and exporting the actual messaging functions
58 @@ -180,7 +180,7 @@ class _make_msgfunction:
59 def __call__(self, msg, phase="other", key=None, out=None):
60 """
61 Display and log a message assigned to the given key/cpv.
62 - """
63 + """
64 _elog_base(self._level, msg, phase=phase,
65 key=key, color=self._color, out=out)
66
67 --
68 2.28.0