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 18/68] lib/portage/output.py: fix whitespace
Date: Mon, 03 Aug 2020 22:44:39
Message-Id: 20200803224327.1593726-18-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/output.py | 6 +++---
4 1 file changed, 3 insertions(+), 3 deletions(-)
5
6 diff --git a/lib/portage/output.py b/lib/portage/output.py
7 index 4c8f8a187..ab99caf98 100644
8 --- a/lib/portage/output.py
9 +++ b/lib/portage/output.py
10 @@ -159,7 +159,7 @@ def _parse_color_map(config_root='/', onerror=None):
11 """
12 global codes, _styles
13 myfile = os.path.join(config_root, COLOR_MAP_FILE)
14 - ansi_code_pattern = re.compile("^[0-9;]*m$")
15 + ansi_code_pattern = re.compile("^[0-9;]*m$")
16 quotes = '\'"'
17 def strip_quotes(token):
18 if token[0] in quotes and token[0] == token[-1]:
19 @@ -174,10 +174,10 @@ def _parse_color_map(config_root='/', onerror=None):
20 for lineno, line in enumerate(lines):
21 commenter_pos = line.find("#")
22 line = line[:commenter_pos].strip()
23 -
24 +
25 if len(line) == 0:
26 continue
27 -
28 +
29 split_line = line.split("=")
30 if len(split_line) != 2:
31 e = ParseError(_("'%s', line %s: expected exactly one occurrence of '=' operator") % \
32 --
33 2.28.0