[Idle-dev] CVS: idle AutoIndent.py,1.3,1.4
Stephen M. Gava
elguavas@users.sourceforge.net
Tue, 22 Jan 2002 21:15:19 -0800
Update of /cvsroot/idlefork/idle
In directory usw-pr-cvs1:/tmp/cvs-serv2544
Modified Files:
AutoIndent.py
Log Message:
fix for python2.2 -Qnew division error,
thanks Tim!
Index: AutoIndent.py
===================================================================
RCS file: /cvsroot/idlefork/idle/AutoIndent.py,v
retrieving revision 1.3
retrieving revision 1.4
diff -C2 -r1.3 -r1.4
*** AutoIndent.py 2002/01/19 10:37:48 1.3
--- AutoIndent.py 2002/01/23 05:15:17 1.4
***************
*** 463,467 ****
elif ch == '\t':
raw = raw + 1
! effective = (effective / tabwidth + 1) * tabwidth
else:
break
--- 463,467 ----
elif ch == '\t':
raw = raw + 1
! effective = (int(effective / tabwidth) + 1) * tabwidth
else:
break