Fix an issue in the parse call.
This commit is contained in:
1 parent
7874026ee5
commit
fb8ffde32e
2 files changed
+8
-7
No files matched your search
@@ -206,10 +206,6 @@ class DiffParser(object):
|
||||
debug.speed('diff parser calculated')
|
||||
debug.dbg('diff: line_lengths old: %s, new: %s' % (len(lines_old), line_length))
|
||||
|
||||
if len(opcodes) == 1 and opcodes[0][0] == 'equal':
|
||||
self._copy_count = 1
|
||||
return self._module
|
||||
|
||||
for operation, i1, i2, j1, j2 in opcodes:
|
||||
debug.dbg('diff %s old[%s:%s] new[%s:%s]',
|
||||
operation, i1 + 1, i2, j1 + 1, j2)
|
||||
|
||||
Reference in new issue
Block a user