]> granicus.if.org Git - python/commit
(py-outdent-p): When looking at the previous line, watch out for
authorBarry Warsaw <barry@python.org>
Wed, 21 Jan 1998 05:36:18 +0000 (05:36 +0000)
committerBarry Warsaw <barry@python.org>
Wed, 21 Jan 1998 05:36:18 +0000 (05:36 +0000)
commitf06777dd7cbaf5a0940a0c72d811ecbb7537d8ce
tree208b69db496893d5f401c2ad670364dbc39564d7
parent9ec9fbc35540f29f1c1dd3874962fc9f98cd7b7a
(py-outdent-p): When looking at the previous line, watch out for
continuation lines.  This fixes this bug report, reported by Frank
Stajano.

# But if I split the "raise" line and reindent, the else WRONGLY goes up a
# level (?!?)

while condition1:
    if condition2:
        raise error3, \
              moreInfo4
else: # meant to close "if condition2"
    action5()
Misc/python-mode.el