SIGN IN SIGN UP
python / cpython UNCLAIMED

The Python programming language

0 0 113 Python

(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()
B
Barry Warsaw committed
f06777dd7cbaf5a0940a0c72d811ecbb7537d8ce
Parent: 9ec9fbc