Open
Description
autopep8 off/on doesn't work
Before formatting:
# autopep8: off
import sys
sys.dont_write_bytecode = True
# autopep8: on
import locale
After:
# autopep8: off
import locale
import sys
sys.dont_write_bytecode = True
# autopep8: on
The workaround is to add a semicolon and join the import
line with the non-import line(s):
# autopep8: off
import sys; sys.dont_write_bytecode = True
# autopep8: on
import locale
Originally posted by @PlatonB in #460 (comment)
Metadata
Metadata
Assignees
Labels
No labels
Activity