Extra asserts

This commit is contained in:
Markus Unterwaditzer 2015-09-22 17:36:34 +02:00
parent 89119f0cda
commit 13925ed3d5

View file

@ -286,6 +286,8 @@ class _Component(object):
self.props = new_lines
def __setitem__(self, key, val):
assert isinstance(val, text_type)
assert u'\n' not in val
del self[key]
line = u'{}:{}'.format(key, val)
self.props.append(line)