Is there a #python tool to automatically take a Python codebase and make it compatible with 3.11 *without dropping older versions*? (Hence: pyupgrade doesn't work for me IIUC)
In particular, I'm dealing with a project that uses `inspect.getargspec`, deprecated since Python 3.0 and finally removed in Python 3.11.
@astrojuanlu if those areas are not critical you could wrap them in a a conditional that checks that the python version is less than 3.11
@astrojuanlu For sure, sorry I was just spitballing. The closest I can think of is to check if it’s less than 3.11. If it is then import inspect.getargspec.
If not do something like
inspect.getargspec = def blank_func():
pass
Since it’s python you can redefine it to just do nothing.