mirror of
https://github.com/xonsh/xonsh.git
synced 2025-03-04 16:34:47 +01:00
input_string → inp
This commit is contained in:
parent
ce6f24cdb0
commit
8cf5db6909
1 changed files with 2 additions and 2 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Reference in a new issue