[wxPython] wxPlotCanvas - bad indentation ?

Hi List,

I was trying to understand wxPlotCanvas. After opening the file
wxPlotCanvas.py (which comes with python 2.0), I found indentation in that
file is totally messed up. As python is very much indentation dependent, it
is very difficult to make out anything from this badly indented file. For
example you cannot make out where a for loop ends or where a if block ends,
in this file. Can anybody tell me where I can get a proper (with proper
indentation) copy of this file. I also find there is a file named
wxPlotCanvas.pyc. How can one generate byte code from such badly indented
file ? As far as I understood, python should be able to detect these bad
indentation and should not generate byte code. TabNanny does complain that
this file does have tabbing problem. Still how are you able generate the
byte code ? Am I missing anything ?

Thanks,
Kingshuk

I was trying to understand wxPlotCanvas. After opening the file
wxPlotCanvas.py (which comes with python 2.0), I found indentation in that
file is totally messed up.

Sorry, I usually try to remove tabs from code people give me, but missed
this one.

ยทยทยท

--
Robin Dunn
Software Craftsman
robin@AllDunn.com Java give you jitters?
http://wxPython.org Relax with wxPython!