[Python-checkins] python/dist/src/Lib/idlelib CodeContext.py, 1.2, 1.3

kbk at users.sourceforge.net kbk at users.sourceforge.net
Mon Apr 26 18:26:07 EDT 2004


Update of /cvsroot/python/python/dist/src/Lib/idlelib
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv32728
Modified Files:
	CodeContext.py 
Log Message:
Fix a bug I introduced which causes all block openers at an indent level
to be shown, instead of outdenting each level.
Index: CodeContext.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/idlelib/CodeContext.py,v
retrieving revision 1.2
retrieving revision 1.3
diff -C2 -d -r1.2 -r1.3
*** CodeContext.py	24 Apr 2004 03:08:13 -0000	1.2
--- CodeContext.py	26 Apr 2004 22:26:04 -0000	1.3
***************
*** 101,105 ****
 if indent < lastindent:
 lastindent = indent
! if opener == "else" or "elif":
 # We also show the if statement
 lastindent += 1
--- 101,105 ----
 if indent < lastindent:
 lastindent = indent
! if opener in ("else", "elif"):
 # We also show the if statement
 lastindent += 1


More information about the Python-checkins mailing list

AltStyle によって変換されたページ (->オリジナル) /