"Vincent Delporte" wrote: > Hello > > When I copy/paste Python code from the web, every so often, > the TABs are wrong, which means that the code won't work and I have to > manually reformat the code. > > Is there a code reformater that can parse the code to make it right? > > Thanks.
Maybe my thread "help: code formatter, 08/01/2007 helps a little? Here are some of the answers: * Why don't you just write one? :) Seriously: Try. * Tools\scripts\reindent.py in your Python distribution. * Why, yes, there is: http://lacusveris.com/PythonTidy/PythonTidy.python * tabnanny ? siggi -- http://mail.python.org/mailman/listinfo/python-list