peerdrive/client/views/diff3.py
def match(list1, list2, nr1, nr2, maxcount=3):
    """ return the number matching items after the given positions
        maximum maxcount lines are are processed
    """
    i = 0
    len1 = len(list1)
    len2 = len(list2)
    while nr1 < len1 and nr2 < len2 and list1[nr1] == list2[nr2]:
        nr1 += 1
        nr2 += 1
        i += 1
        if i >= maxcount and maxcount>0: break
    return i
 return the number matching items after the given positions
        maximum maxcount lines are are processed
    
return the number matching items after the given positions
maximum maxcount lines are are processed
return the number matching items after the given positions maximum maxcount lines are are processed
def match(list1, list2, nr1, nr2, maxcount=3):
    i = 0
    len1 = len(list1)
    len2 = len(list2)
    while nr1 < len1 and nr2 < len2 and list1[nr1] == list2[nr2]:
        nr1 += 1
        nr2 += 1
        i += 1
        if i >= maxcount and maxcount>0: break
    return i
def match ( list1 , list2 , nr1 , nr2 , maxcount = 3 ) : i = 0 len1 = len ( list1 ) len2 = len ( list2 ) while nr1 < len1 and nr2 < len2 and list1 [ nr1 ] == list2 [ nr2 ] : nr1 += 1 nr2 += 1 i += 1 if i >= maxcount and maxcount > 0 : break return i
return the number matching items after the given positions
maximum maxcount lines are are processed
return the number matching items after the given positions maximum maxcount lines are are processed
""" return the number matching items after the given positions
        maximum maxcount lines are are processed
    """
list1
list2
nr1
nr2
maxcount