1022
1026
def _check_add(self, key, lines, random_id, check_content):
1023
1027
"""check that version_id and lines are safe to add."""
1028
1033
# TODO: If random_id==False and the key is already present, we should
1029
1034
# probably check that the existing content is identical to what is
1030
1035
# being inserted, and otherwise raise an exception. This would make