66
66
:param value: The value to associate with the key. It may be any
67
67
bytes as long as it does not contain \0 or \n.
70
70
raise errors.BadIndexKey(key)
71
71
if _newline_null_re.search(value) is not None:
72
72
raise errors.BadIndexValue(value)