diff options
-rw-r--r-- | Lib/idlelib/CodeContext.py | 2 |
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: |