1 |
commit: e4de947fd48a95b078e7d6a35099e200e6f19a02 |
2 |
Author: Brian Dolbec <dolsen <AT> gentoo <DOT> org> |
3 |
AuthorDate: Fri Apr 24 12:36:33 2020 +0000 |
4 |
Commit: Brian Dolbec <dolsen <AT> gentoo <DOT> org> |
5 |
CommitDate: Fri Apr 24 13:56:34 2020 +0000 |
6 |
URL: https://gitweb.gentoo.org/proj/layman.git/commit/?id=e4de947f |
7 |
|
8 |
layman/config.py: Fix py3.7, py3.8 ConfigParser error |
9 |
|
10 |
Newer pythons require string defaults only. |
11 |
The final config instance variable is either a NoneType or list |
12 |
|
13 |
Signed-off-by: Brian Dolbec <dolsen <AT> gentoo.org> |
14 |
|
15 |
layman/config.py | 2 +- |
16 |
1 file changed, 1 insertion(+), 1 deletion(-) |
17 |
|
18 |
diff --git a/layman/config.py b/layman/config.py |
19 |
index 853e22f..bc3172b 100644 |
20 |
--- a/layman/config.py |
21 |
+++ b/layman/config.py |
22 |
@@ -96,7 +96,7 @@ class BareConfig(object): |
23 |
'cache' : '%(storage)s/cache', |
24 |
'local_list': '%(storage)s/overlays.xml', |
25 |
'installed': '%(storage)s/installed.xml', |
26 |
- 'protocol_filter': [], |
27 |
+ 'protocol_filter': '', |
28 |
'auto_sync': 'No', |
29 |
'check_official': 'Yes', |
30 |
'conf_type': 'repos.conf', |