[Python-checkins] CVS: python/dist/src/Tools/idle AutoIndent.py,1.18,1.19

Tim Peters tim_one@users.sourceforge.net
Wed, 23 Jan 2002 08:57:57 -0800


Update of /cvsroot/python/python/dist/src/Tools/idle
In directory usw-pr-cvs1:/tmp/cvs-serv23667/Tools/idle

Modified Files:
	AutoIndent.py 
Log Message:
smart_backspace_event():  remove now-pointless int() call.
Bugfix candidate:  the current state of AutoIdent.py should be in 2.2.1.


Index: AutoIndent.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Tools/idle/AutoIndent.py,v
retrieving revision 1.18
retrieving revision 1.19
diff -C2 -d -r1.18 -r1.19
*** AutoIndent.py	2002/01/23 15:15:13	1.18
--- AutoIndent.py	2002/01/23 16:57:55	1.19
***************
*** 172,176 ****
          have = len(expand(chars, tabwidth))
          assert have > 0
!         want = int((have - 1) // self.indentwidth) * self.indentwidth
          ncharsdeleted = 0
          while 1:
--- 172,176 ----
          have = len(expand(chars, tabwidth))
          assert have > 0
!         want = ((have - 1) // self.indentwidth) * self.indentwidth
          ncharsdeleted = 0
          while 1: