Menu

#1441 Ctrl+1 comment fixes do not follow PEP8

open
Editor (491)
5
2011-12-16
2011-12-16
Anonymous
No

When PEP8 is enabled, Ctrl+1 comment fixes do not follow the E261 PEP8 rule (at least two spaces before inline comment).

Steps to reproduce:
- In any Python file, put the same import twice to create a warning (it can be done with most warnings).
- On the line that has a warning, press Ctrl+1 and select "Reimport"
- There's only one space before the generated comment and a PEP8 E261 warning appears.

Discussion