Commit a73f5fea authored by Bryton Lacquement's avatar Bryton Lacquement 🚪

fix_trace_division: typos

parent dc99b9f8
......@@ -38,11 +38,11 @@ class FixTraceDivision(lib2to3.fixer_base.BaseFix):
def transform(self, node, results):
lineno = node.get_lineno()
divisor = node.children[0].clone()
dividend = node.children[0].clone()
if node.prefix == divisor.prefix:
divisor.prefix = ''
dividend.prefix = ''
comma = lib2to3.fixer_util.Comma()
comma.prefix = prefix=node.children[1].prefix
comma.prefix = prefix = node.children[1].prefix
node.replace(
lib2to3.fixer_util.Call(
......@@ -50,7 +50,7 @@ class FixTraceDivision(lib2to3.fixer_base.BaseFix):
args=(
lib2to3.fixer_util.Number(self.ids[lineno]),
lib2to3.fixer_util.Comma(),
divisor,
dividend,
comma,
node.children[2].clone(),
),
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment