I have a bunch of modules written in python 2.x and I need them to be in 3.x for them to work. I ran 2to3 on the entire folder, and it seemed to work fine, but when I looked at the files again they were the same. I have not used 2to3 and was wondering if it saves the converted files in some other directory.
You need to tell 2to3
explicitly to actually write the changes, using the -w
switch:
2to3 -w example.py
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With