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

fix_division: modify 'int / int' into 'int // int'

parent 5d6f82fc
......@@ -39,8 +39,12 @@ def analyze_data(data):
"""Indicates whether the division described by `data` should be modified into
`//`, or should remain as `/`
"""
# TODO:
return True
data = list(data) # data was a set
if len(data) == 1:
dividend, divisor = data[0]
if dividend is divisor is int:
return True
return False
class FixDivision(lib2to3.fixer_base.BaseFix):
......
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