[Patches] [ python-Patches-980120 ] difflib empty list IndexError fix (Bug #980117)

SourceForge.net noreply at sourceforge.net
Fri Jun 25 22:52:16 EDT 2004


Patches item #980120, was opened at 2004-06-25 22:52
Message generated for change (Tracker Item Submitted) made by Item Submitter
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=305470&aid=980120&group_id=5470

Category: Library (Lib)
Group: None
Status: Open
Resolution: None
Priority: 5
Submitted By: Rocco Moretti (roccomoretti)
Assigned to: Nobody/Anonymous (nobody)
Summary: difflib empty list IndexError fix (Bug #980117)

Initial Comment:
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.



----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=305470&aid=980120&group_id=5470



More information about the Patches mailing list