From 44f26ca2ca5be7c34c323adb247d7c5404faf82c Mon Sep 17 00:00:00 2001 From: Timotej Lazar Date: Tue, 19 Apr 2016 18:38:46 +0200 Subject: Fix: correctly parse difflib.SequenceMatcher output --- monkey/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'monkey') 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) -- cgit v1.2.1