Show More
@@ -13,6 +13,7 b' import os' | |||
|
13 | 13 | from .i18n import _ |
|
14 | 14 | from . import ( |
|
15 | 15 | error, |
|
16 | pycompat, | |
|
16 | 17 | util, |
|
17 | 18 | ) |
|
18 | 19 | |
@@ -69,6 +70,9 b' class config(object):' | |||
|
69 | 70 | def items(self, section): |
|
70 | 71 | return self._data.get(section, {}).items() |
|
71 | 72 | def set(self, section, item, value, source=""): |
|
73 | if pycompat.ispy3: | |
|
74 | assert not isinstance(value, str), ( | |
|
75 | 'config values may not be unicode strings on Python 3') | |
|
72 | 76 | if section not in self: |
|
73 | 77 | self._data[section] = util.sortdict() |
|
74 | 78 | self._data[section][item] = value |
General Comments 0
You need to be logged in to leave comments.
Login now