##// END OF EJS Templates
config: remove conditional asserts...
Gregory Szorc -
r49745:f5127b87 default
parent child Browse files
Show More
@@ -114,16 +114,15 b' class config(object):'
114 return [(k, v[0]) for (k, v) in items]
114 return [(k, v[0]) for (k, v) in items]
115
115
116 def set(self, section, item, value, source=b""):
116 def set(self, section, item, value, source=b""):
117 if pycompat.ispy3:
117 assert not isinstance(
118 assert not isinstance(
118 section, str
119 section, str
119 ), b'config section may not be unicode strings on Python 3'
120 ), b'config section may not be unicode strings on Python 3'
120 assert not isinstance(
121 assert not isinstance(
121 item, str
122 item, str
122 ), b'config item may not be unicode strings on Python 3'
123 ), b'config item may not be unicode strings on Python 3'
123 assert not isinstance(
124 assert not isinstance(
124 value, str
125 value, str
125 ), b'config values may not be unicode strings on Python 3'
126 ), b'config values may not be unicode strings on Python 3'
127 if section not in self:
126 if section not in self:
128 self._data[section] = util.cowsortdict()
127 self._data[section] = util.cowsortdict()
129 else:
128 else:
General Comments 0
You need to be logged in to leave comments. Login now