equal
deleted
inserted
replaced
67 a is assumed to have a control char at the start of each line, this char |
67 a is assumed to have a control char at the start of each line, this char |
68 is ignored in the compare. |
68 is ignored in the compare. |
69 """ |
69 """ |
70 alen = len(a) |
70 alen = len(a) |
71 blen = len(b) |
71 blen = len(b) |
72 if alen > blen - bstart: |
72 if alen > blen - bstart or bstart < 0: |
73 return False |
73 return False |
74 for i in xrange(alen): |
74 for i in xrange(alen): |
75 if a[i][1:] != b[i + bstart]: |
75 if a[i][1:] != b[i + bstart]: |
76 return False |
76 return False |
77 return True |
77 return True |