Show More
@@ -14,7 +14,6 b' from .pycompat import getattr' | |||||
14 | from . import ( |
|
14 | from . import ( | |
15 | encoding, |
|
15 | encoding, | |
16 | error, |
|
16 | error, | |
17 | pycompat, |
|
|||
18 | util, |
|
17 | util, | |
19 | ) |
|
18 | ) | |
20 |
|
19 | |||
@@ -110,7 +109,7 b' class config(object):' | |||||
110 | return sorted(self._data.keys()) |
|
109 | return sorted(self._data.keys()) | |
111 |
|
110 | |||
112 | def items(self, section): |
|
111 | def items(self, section): | |
113 |
items = |
|
112 | items = self._data.get(section, {}).items() | |
114 | return [(k, v[0]) for (k, v) in items] |
|
113 | return [(k, v[0]) for (k, v) in items] | |
115 |
|
114 | |||
116 | def set(self, section, item, value, source=b""): |
|
115 | def set(self, section, item, value, source=b""): |
General Comments 0
You need to be logged in to leave comments.
Login now