##// 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 114 return [(k, v[0]) for (k, v) in items]
115 115
116 116 def set(self, section, item, value, source=b""):
117 if pycompat.ispy3:
118 assert not isinstance(
119 section, str
120 ), b'config section may not be unicode strings on Python 3'
121 assert not isinstance(
122 item, str
123 ), b'config item may not be unicode strings on Python 3'
124 assert not isinstance(
125 value, str
126 ), b'config values may not be unicode strings on Python 3'
117 assert not isinstance(
118 section, str
119 ), b'config section may not be unicode strings on Python 3'
120 assert not isinstance(
121 item, str
122 ), b'config item may not be unicode strings on Python 3'
123 assert not isinstance(
124 value, str
125 ), b'config values may not be unicode strings on Python 3'
127 126 if section not in self:
128 127 self._data[section] = util.cowsortdict()
129 128 else:
General Comments 0
You need to be logged in to leave comments. Login now