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

fixup! fix_trace_division: typos

This is a fixup for commit a73f5fea.
parent 6626dff6
...@@ -39,7 +39,7 @@ class FixTraceDivision(lib2to3.fixer_base.BaseFix): ...@@ -39,7 +39,7 @@ class FixTraceDivision(lib2to3.fixer_base.BaseFix):
def transform(self, node, results): def transform(self, node, results):
lineno = node.get_lineno() lineno = node.get_lineno()
dividend = node.children[0].clone() dividend = node.children[0].clone()
if node.prefix == divisor.prefix: if node.prefix == dividend.prefix:
dividend.prefix = '' dividend.prefix = ''
comma = lib2to3.fixer_util.Comma() comma = lib2to3.fixer_util.Comma()
comma.prefix = prefix = node.children[1].prefix comma.prefix = prefix = node.children[1].prefix
......
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