summaryrefslogtreecommitdiff
path: root/monkey/__init__.py
diff options
context:
space:
mode:
authorTimotej Lazar <timotej.lazar@fri.uni-lj.si>2016-01-12 13:57:12 +0100
committerTimotej Lazar <timotej.lazar@fri.uni-lj.si>2016-01-12 13:57:12 +0100
commit4da3793985d1d177a95d67e78dd2f4f5f52e2eab (patch)
treeede0d7204daa01f4b47d28e205fa838bf273cec6 /monkey/__init__.py
parentf1521c9769f9b28cf658a9255dbfc16c98870da9 (diff)
Replace prolog.util.rename_vars with rename_vars_list everywhere
Diffstat (limited to 'monkey/__init__.py')
-rw-r--r--monkey/__init__.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/monkey/__init__.py b/monkey/__init__.py
index fbb4535..79dfe2d 100644
--- a/monkey/__init__.py
+++ b/monkey/__init__.py
@@ -16,7 +16,7 @@
import time
-from prolog.util import tokenize, rename_vars, stringify, parse, interesting_ranges, rename_vars_list
+from prolog.util import tokenize, stringify, parse, interesting_ranges, rename_vars_list
from .util import PQueue
# Starting from [code], find a sequence of edits that transforms it into a
@@ -33,7 +33,7 @@ def fix(code, edits, test, timeout=30, debug=False):
for (path, a, b), (p, uids) in edits.items():
if path == range_path and a == part_normal:
reverse_names = {v: k for k, v in names.items()}
- b_real = tuple(rename_vars(b, reverse_names))
+ b_real = tuple(rename_vars_list(b, reverse_names))
new_tokens = []
idx = None
for i, t in enumerate(tokens):