From 998e836873c15e1f188afce1ee28e7d21e4164f0 Mon Sep 17 00:00:00 2001 From: moculus Date: Tue, 3 Feb 2009 19:19:48 +0000 Subject: [PATCH] stupid indenting issue --HG-- branch : pmacs2 --- mode/python.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/mode/python.py b/mode/python.py index 55a8ff1..de162ca 100644 --- a/mode/python.py +++ b/mode/python.py @@ -169,13 +169,12 @@ class PythonTabber(tab.StackTabber): # we only really care about a colon as part of a one-line statement, # i.e. "while ok: foo()" or "if True: print 3" if token.string == ':': - if self.markers and self.markers[-1].name in ('[', '{'): + if self.markers and self.markers[-1].name in ('[', '{', '('): pass elif self.is_rightmost_token(y, i): pass else: - #self._pop() - pass + self._pop() elif fqname == 'python_keyword': if token.string in self.endlevel_names: # we know we'll unindent at least once