Clear the diff when 2 ''lines'' are left, rather than 2 ''words''.
- Legacy-Id: 318
This commit is contained in:
parent
ea639f96c4
commit
a3f93df8a4
|
@ -175,7 +175,7 @@ class UrlTestCase(TestCase):
|
||||||
while re.search(chunk, diff):
|
while re.search(chunk, diff):
|
||||||
#print "*** Removing chunk of %s lines" % (len(chunk.split("\n")))
|
#print "*** Removing chunk of %s lines" % (len(chunk.split("\n")))
|
||||||
diff = re.sub(chunk, "", diff)
|
diff = re.sub(chunk, "", diff)
|
||||||
if len(diff.strip().split()) == 2:
|
if len(diff.strip().splitlines()) == 2:
|
||||||
# only the initial 2 lines of the diff remains --
|
# only the initial 2 lines of the diff remains --
|
||||||
# discard them too
|
# discard them too
|
||||||
diff = ""
|
diff = ""
|
||||||
|
|
Loading…
Reference in a new issue