More indentation bugs
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
python-mode.el |
Fix Released
|
Medium
|
Andreas Roehler |
Bug Description
Given this file:
def itn(n, digits=8, format=
"""Convert a python number to a number field.
"""
# number.
if 0 <= n < 8 ** (digits - 1):
s = bytes("%0*o" % (digits - 1, n), "ascii") + NUL
elif format == GNU_FORMAT and -256 ** (digits - 1) <= n < 256 ** (digits - 1):
if n >= 0:
s = bytearray([0o200])
else:
s = bytearray([0o377])
n = 256 ** digits + n
for i in range(digits - 1):
n >>= 8
else:
raise ValueError(
return s
open it, put point on any of the lines below the "if n >= 0" and press TAB. Line will be outdented to column 0 or 4.
Changed in python-mode: | |
assignee: | nobody → Andreas Roehler (a-roehler) |
milestone: | none → 6.0.4 |
importance: | Undecided → Medium |
Changed in python-mode: | |
status: | New → Incomplete |
Changed in python-mode: | |
status: | New → In Progress |
Changed in python-mode: | |
status: | In Progress → Fix Committed |
Changed in python-mode: | |
status: | Fix Committed → Fix Released |
Hi,
can't reproduce.
Maybe fix of lp:883902 made it gone?