[Idle-dev] CVS: idle AutoIndent.py,1.4,1.5
Stephen M. Gava
elguavas@users.sourceforge.net
Wed, 23 Jan 2002 15:56:43 -0800
Update of /cvsroot/idlefork/idle
In directory usw-pr-cvs1:/tmp/cvs-serv7841
Modified Files:
AutoIndent.py
Log Message:
staying current with python idle fixes
Index: AutoIndent.py
===================================================================
RCS file: /cvsroot/idlefork/idle/AutoIndent.py,v
retrieving revision 1.4
retrieving revision 1.5
diff -C2 -r1.4 -r1.5
*** AutoIndent.py 2002/01/23 05:15:17 1.4
--- AutoIndent.py 2002/01/23 23:56:41 1.5
***************
*** 139,143 ****
have = len(expand(chars, tabwidth))
assert have > 0
! want = int((have - 1) / self.indentwidth) * self.indentwidth
ncharsdeleted = 0
while 1:
--- 139,143 ----
have = len(expand(chars, tabwidth))
assert have > 0
! want = ((have - 1) // self.indentwidth) * self.indentwidth
ncharsdeleted = 0
while 1:
***************
*** 463,467 ****
elif ch == '\t':
raw = raw + 1
! effective = (int(effective / tabwidth) + 1) * tabwidth
else:
break
--- 463,467 ----
elif ch == '\t':
raw = raw + 1
! effective = (effective // tabwidth + 1) * tabwidth
else:
break