diff options
author | Timotej Lazar <timotej.lazar@fri.uni-lj.si> | 2016-04-19 18:38:46 +0200 |
---|---|---|
committer | Timotej Lazar <timotej.lazar@fri.uni-lj.si> | 2016-04-19 18:38:46 +0200 |
commit | 44f26ca2ca5be7c34c323adb247d7c5404faf82c (patch) | |
tree | e0323c233e923962c5d1d1b47a98834f0fac03b6 | |
parent | f444983ccea66565897122fb7d940b74187a31df (diff) |
Fix: correctly parse difflib.SequenceMatcher output
-rw-r--r-- | monkey/__init__.py | 2 |
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) |