Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Hangs when line just contains backslash #540

Closed
mowat27 opened this issue Apr 21, 2020 · 1 comment
Closed

Hangs when line just contains backslash #540

mowat27 opened this issue Apr 21, 2020 · 1 comment
Assignees
Labels
Milestone

Comments

@mowat27
Copy link

mowat27 commented Apr 21, 2020


Python Code

# in file breaks_autopep.py
import sys
\
def f():
    pass

Command Line and Configuration

.pep8, setup.cfg, ...

N/A - default settings

[pep8]

N/A - default settings

Command Line

$ autopep8 -v --in-place --aggressive breaks_autopep.py
[file:tmp/breaks_autopep.py]
--->  Applying global fix for E265
--->  Applying global fix for E231
--->  Applying global fix for E721
--->  Applying global fix for W601
--->  Applying global fix for W603
--->  Applying global fix for W604
--->  Applying global fix for W690
--->  1 issue(s) to fix {'E302': {3}}
--->  2 issue(s) to fix {'E302': {5}, 'E122': {5}}
--->  2 issue(s) to fix {'E302': {7}, 'E122': {7}}
--->  2 issue(s) to fix {'E302': {9}, 'E122': {9}}
--->  2 issue(s) to fix {'E302': {11}, 'E122': {11}}
--->  2 issue(s) to fix {'E302': {13}, 'E122': {13}}
--->  2 issue(s) to fix {'E302': {15}, 'E122': {15}}
--->  2 issue(s) to fix {'E302': {17}, 'E122': {17}}
--->  2 issue(s) to fix {'E302': {19}, 'E122': {19}}
--->  2 issue(s) to fix {'E302': {21}, 'E122': {21}}
--->  2 issue(s) to fix {'E302': {23}, 'E122': {23}}
--->  2 issue(s) to fix {'E302': {25}, 'E122': {25}}
--->  2 issue(s) to fix {'E302': {27}, 'E122': {27}}
--->  2 issue(s) to fix {'E302': {29}, 'E122': {29}}
--->  2 issue(s) to fix {'E302': {31}, 'E122': {31}}
--->  2 issue(s) to fix {'E302': {33}, 'E122': {33}}
--->  2 issue(s) to fix {'E302': {35}, 'E122': {35}}
--->  2 issue(s) to fix {'E302': {37}, 'E122': {37}}
--->  2 issue(s) to fix {'E302': {39}, 'E122': {39}}
--->  2 issue(s) to fix {'E302': {41}, 'E122': {41}}
# ...
# and so on and on and on....

Your Environment

  • Python version: Python 3.8.2
  • autopep8 version: autopep8 1.5.1 (pycodestyle: 2.5.0)
  • Platform: MacOS 10.15.2
@hhatto hhatto added the bug label Apr 22, 2020
@hhatto hhatto self-assigned this Apr 22, 2020
@hhatto hhatto added this to the 1.5.3 milestone Apr 22, 2020
@hhatto
Copy link
Owner

hhatto commented May 3, 2020

Thanks for bug reporting.

fix in latest master.
We will be releasing 1.5.3 at the end of May.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants