David <[EMAIL PROTECTED]> writes: > Is there a pretty printing utility for Python, something like Tidy for > HTML? > > That will change: > > xp=self.uleft[0]+percentx*(self.xwidth) > > To: > > xp = self.uleft[0] + percentx * (self.xwidth) > > And other formatting issues.
Googled and found these; no idea if they're any good (latter is commercial): http://cheeseshop.python.org/pypi/PythonTidy/1.11 http://python.softalizer.com/ See also: http://svn.python.org/view/python/trunk/Tools/scripts/reindent.py?view=log John -- http://mail.python.org/mailman/listinfo/python-list