Update of /cvsroot/python/python/dist/src/Tools/idle In directory usw-pr-cvs1:/tmp/cvs-serv565 Modified Files: Tag: release22-maint AutoIndent.py Log Message: It's merge time! Tim sez "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.16 retrieving revision 1.16.26.1 diff -C2 -d -r1.16 -r1.16.26.1 *** AutoIndent.py 1999/06/11 15:03:00 1.16 --- AutoIndent.py 2002/01/28 15:10:52 1.16.26.1 *************** *** 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: *************** *** 496,500 **** elif ch == '\t': raw = raw + 1 ! effective = (effective / tabwidth + 1) * tabwidth else: break --- 496,500 ---- elif ch == '\t': raw = raw + 1 ! effective = (effective // tabwidth + 1) * tabwidth else: break
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4