I am trying to convert a module from python version 2.x to python version 3.x. To do that I am using 2to3 converter. However since I couldn't find any parameter in this converter to change also %s or printf-style to str.format() style I just tried to use pyupgrade package as follows:
pyupgrade /path/to/myfile.py
However this one also does not make any change. Do you have any idea or suggestion if there is a converter to do this?
Ex.
limit=None
ll = 23
limitQuery = 'LIMIT %s,%s'% (limit, ll)
print(limitQuery)
after running this command it does not change:
pyupgrade /Users/Eli/Desktop/test.py