From 8cf5db690957400bd232d6d1c270423719dd7d49 Mon Sep 17 00:00:00 2001 From: Klaus Alexander Seistrup Date: Thu, 30 Jul 2015 17:04:48 +0200 Subject: [PATCH] =?UTF-8?q?input=5Fstring=20=E2=86=92=20inp?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- xonsh/ast.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/xonsh/ast.py b/xonsh/ast.py index c4747ea72..ac55f6c11 100644 --- a/xonsh/ast.py +++ b/xonsh/ast.py @@ -62,7 +62,7 @@ class CtxAwareTransformer(NodeTransformer): self.lines = None self.mode = None - def ctxvisit(self, node, input_string, ctx, mode='exec'): + def ctxvisit(self, node, inp, ctx, mode='exec'): """Transforms the node in a context-dependent way. Parameters @@ -79,7 +79,7 @@ class CtxAwareTransformer(NodeTransformer): node : ast.AST The transformed node. """ - self.lines = input_string.splitlines() + self.lines = inp.splitlines() self.contexts = [ctx, set()] self.mode = mode node = self.visit(node)