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