GNOME Bugzilla – Bug 325320
widget.py example intendation
Last modified: 2006-04-02 19:23:04 UTC
Please describe the problem: http://cvs.gnome.org/viewcvs/gnome-python/pygtk/examples/gtk/widget.py contains both tabs and spaces for intendation. Steps to reproduce: 1. gedit widget.py (with tab with set to 4 spaces) 2. 3. Actual results: This makes the code hard to read when tab width is not set to 8 spaces... Expected results: Does this happen every time? Other information:
It follows PEP-8 and uses 4 spaces.
Sorry if my original report was not clear enough: PEP-8: "Never mix tabs and spaces." There are tabs on line 52, 67, 76, 77 & 78, whereas the rest of the file uses 4 spaces for intendation. It _DOES NOT_ follow PEP-8. ============================================================= dieterv@PO001 ~/tmp/downloads $ python -t widget.py widget.py: inconsistent use of tabs and spaces in indentation dieterv@PO001 ~/tmp/downloads $ python -tt widget.py
+ Trace 67406
self.window.set_user_data(self)
Oh, sorry. Anyway, I removed the tabs now: Checking in ChangeLog; /cvs/gnome/gnome-python/pygtk/ChangeLog,v <-- ChangeLog new revision: 1.1388; previous revision: 1.1387 done Checking in examples/gtk/widget.py; /cvs/gnome/gnome-python/pygtk/examples/gtk/widget.py,v <-- widget.py new revision: 1.12; previous revision: 1.11 done