Skip to content

Commit a3f93df

Browse files
committed
Clear the diff when 2 ''lines'' are left, rather than 2 ''words''.
- Legacy-Id: 318
1 parent ea639f9 commit a3f93df

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

ietf/tests.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -175,7 +175,7 @@ def doUrlsTest(self, lst):
175175
while re.search(chunk, diff):
176176
#print "*** Removing chunk of %s lines" % (len(chunk.split("\n")))
177177
diff = re.sub(chunk, "", diff)
178-
if len(diff.strip().split()) == 2:
178+
if len(diff.strip().splitlines()) == 2:
179179
# only the initial 2 lines of the diff remains --
180180
# discard them too
181181
diff = ""

0 commit comments

Comments
 (0)