summaryrefslogtreecommitdiffstats
path: root/Lib/idlelib
diff options
context:
space:
mode:
authorKurt B. Kaiser <kbk@shore.net>2004-04-26 22:26:04 (GMT)
committerKurt B. Kaiser <kbk@shore.net>2004-04-26 22:26:04 (GMT)
commite3636e05dece349d97afc97b00945d795a5878e2 (patch)
tree59cc605c7d328039634c50cb36753275b92c4c49 /Lib/idlelib
parentce97fbe772793d1e4e1887228388fdc15e575667 (diff)
downloadcpython-e3636e05dece349d97afc97b00945d795a5878e2.zip
cpython-e3636e05dece349d97afc97b00945d795a5878e2.tar.gz
cpython-e3636e05dece349d97afc97b00945d795a5878e2.tar.bz2
Fix a bug I introduced which causes all block openers at an indent level
to be shown, instead of outdenting each level.
Diffstat (limited to 'Lib/idlelib')
-rw-r--r--Lib/idlelib/CodeContext.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/idlelib/CodeContext.py b/Lib/idlelib/CodeContext.py
index d8f9237..f2fda41 100644
--- a/Lib/idlelib/CodeContext.py
+++ b/Lib/idlelib/CodeContext.py
@@ -100,7 +100,7 @@ class CodeContext:
indent, text, opener = self.get_line_info(line_index)
if indent < lastindent:
lastindent = indent
- if opener == "else" or "elif":
+ if opener in ("else", "elif"):
# We also show the if statement
lastindent += 1
if opener and line_index < firstline: