1 |
* This fixes the one instance of trailing-comma-tuple in the repo |
2 |
* A tuple does need created, but lets do so inside of parentheses as |
3 |
expected |
4 |
|
5 |
Suggested-By: Sam James <sam@g.o> |
6 |
Suggested-By: Zac Medico <zmedico@g.o> |
7 |
Signed-off-by: Aaron Bauman <bman@g.o> |
8 |
--- |
9 |
lib/portage/repository/config.py | 2 +- |
10 |
pylintrc | 3 ++- |
11 |
2 files changed, 3 insertions(+), 2 deletions(-) |
12 |
|
13 |
diff --git a/lib/portage/repository/config.py b/lib/portage/repository/config.py |
14 |
index 0f3e582f8..f7c956dd8 100644 |
15 |
--- a/lib/portage/repository/config.py |
16 |
+++ b/lib/portage/repository/config.py |
17 |
@@ -871,7 +871,7 @@ class RepoConfigLoader: |
18 |
continue |
19 |
if repo.masters is None: |
20 |
if self.mainRepo() and repo_name != self.mainRepo().name: |
21 |
- repo.masters = self.mainRepo(), |
22 |
+ repo.masters = (self.mainRepo(),) |
23 |
else: |
24 |
repo.masters = () |
25 |
else: |
26 |
diff --git a/pylintrc b/pylintrc |
27 |
index 337311daa..5e13f714c 100644 |
28 |
--- a/pylintrc |
29 |
+++ b/pylintrc |
30 |
@@ -21,7 +21,8 @@ enable= |
31 |
redefined-builtin, |
32 |
reimported, |
33 |
relative-beyond-top-level, |
34 |
- trailing-newlines, |
35 |
+ trailing-comma-tuple, |
36 |
+ trailing-newlines, |
37 |
trailing-whitespace, |
38 |
unexpected-line-ending-format, |
39 |
unnecessary-semicolon, |
40 |
-- |
41 |
2.28.0 |