--target-version argument is ignored
Thanks for your work here! For a project of mine, I'm mainly interested in latest 3.x -> 3.4/5 transpiling rather than to Python2, so I've tried using lib3to6's --target-version option. Unfortunately, it doesn't seem to work -- the emitted code is always targetting python 2.7.
Looking at the code, it looks like main()'s target_version
option is not used at all in the method body. transpile.transpile_module
takes a cfg
argument, which seems to come from eval_build_config
, which defaults to 2.7. So it seems like something went wrong at some point in the history of the project?