summaryrefslogtreecommitdiff
path: root/monkey
diff options
context:
space:
mode:
authorTimotej Lazar <timotej.lazar@fri.uni-lj.si>2016-04-19 18:38:46 +0200
committerTimotej Lazar <timotej.lazar@fri.uni-lj.si>2016-04-19 18:38:46 +0200
commit44f26ca2ca5be7c34c323adb247d7c5404faf82c (patch)
treee0323c233e923962c5d1d1b47a98834f0fac03b6 /monkey
parentf444983ccea66565897122fb7d940b74187a31df (diff)
Fix: correctly parse difflib.SequenceMatcher output
Diffstat (limited to 'monkey')
-rw-r--r--monkey/__init__.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/monkey/__init__.py b/monkey/__init__.py
index 53d5b8a..d853ab2 100644
--- a/monkey/__init__.py
+++ b/monkey/__init__.py
@@ -130,7 +130,7 @@ def fix_hints(code, steps):
else:
pos_start = tokens[idx+i1].pos
pos_end = pos_start+1
- elif tag == 'delete':
+ elif tag == 'remove':
hint_id = 'monkey_remove'
pos_start = tokens[idx+i1].pos
pos_end = tokens[idx+i2-1].pos + len(tokens[idx+i2-1].val)