stupid indenting issue

--HG--
branch : pmacs2
This commit is contained in:
moculus 2009-02-03 19:19:48 +00:00
parent 482ef39720
commit 998e836873
1 changed files with 2 additions and 3 deletions

View File

@ -169,13 +169,12 @@ class PythonTabber(tab.StackTabber):
# we only really care about a colon as part of a one-line statement, # we only really care about a colon as part of a one-line statement,
# i.e. "while ok: foo()" or "if True: print 3" # i.e. "while ok: foo()" or "if True: print 3"
if token.string == ':': if token.string == ':':
if self.markers and self.markers[-1].name in ('[', '{'): if self.markers and self.markers[-1].name in ('[', '{', '('):
pass pass
elif self.is_rightmost_token(y, i): elif self.is_rightmost_token(y, i):
pass pass
else: else:
#self._pop() self._pop()
pass
elif fqname == 'python_keyword': elif fqname == 'python_keyword':
if token.string in self.endlevel_names: if token.string in self.endlevel_names:
# we know we'll unindent at least once # we know we'll unindent at least once