This is a potential fix for the Bug #980117. The functions unified_diff() and context_diff() give an IndexError when called with two empty lists due to an unmasked index of the opcode lists in SequenceMatcher.get_grouped_opcodes(). In the case of two empty lists passed to the functions, SequenceMatcher.codes is an empty list.