fixed python bug

--HG--
branch : pmacs2
This commit is contained in:
moculus 2009-02-23 03:42:37 +00:00
parent 1126b059b8
commit 22e873833f
1 changed files with 1 additions and 1 deletions

View File

@ -179,7 +179,7 @@ class PythonTabber(tab.StackTabber):
else: else:
self._pop() self._pop()
elif fqname == 'python_keyword': elif fqname == 'python_keyword':
if token.string in self.endlevel_names: if token.string in self.endlevel_names and self.is_leftmost_token(y, i):
# we know we'll unindent at least once # we know we'll unindent at least once
self._pop() self._pop()
self.popped = True self.popped = True