Update of /cvsroot/pywin32/pywin32/Pythonwin/pywin/idle
In directory ddv4jf1.ch3.sourceforge.com:/tmp/cvs-serv21673/Pythonwin/pywin/idle
Modified Files:
AutoIndent.py
Log Message:
Syntax modernization: use iteritems and int division.
Index: AutoIndent.py
===================================================================
RCS file: /cvsroot/pywin32/pywin32/Pythonwin/pywin/idle/AutoIndent.py,v
retrieving revision 1.6
retrieving revision 1.7
diff -C2 -d -r1.6 -r1.7
*** AutoIndent.py 27 Nov 2008 03:53:25 -0000 1.6
--- AutoIndent.py 6 Dec 2008 00:39:59 -0000 1.7
***************
*** 117,121 ****
def config(self, **options):
! for key, value in options.items():
if key == 'usetabs':
self.usetabs = value
--- 117,121 ----
def config(self, **options):
! for key, value in options.iteritems():
if key == 'usetabs':
self.usetabs = value
***************
*** 493,497 ****
elif ch == '\t':
raw = raw + 1
! effective = (effective / tabwidth + 1) * tabwidth
else:
break
--- 493,497 ----
elif ch == '\t':
raw = raw + 1
! effective = (effective // tabwidth + 1) * tabwidth
else:
break
|