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

Incorrect output with E231 and E225 #1

Closed
myint opened this issue Dec 2, 2011 · 2 comments
Closed

Incorrect output with E231 and E225 #1

myint opened this issue Dec 2, 2011 · 2 comments

Comments

@myint
Copy link
Collaborator

myint commented Dec 2, 2011

test_broken.py:

0,11/2

Running autopep8 on test_broken.py results in incorrect output:

$ autopep8 test_broken.py
0, 1 1 /2

Instead I would expect:

0, 11 / 2

Here is the output of pep8 for reference:

$ pep8 test_broken.py
test_broken.py:1:2: E231 missing whitespace after ','
test_broken.py:1:5: E225 missing whitespace around operator
@myint
Copy link
Collaborator Author

myint commented Dec 2, 2011

I have a workaround for this problem (myint/autopep8@7b41e3a304ab311c1ad60c8cd64391d75c3f10c1). It makes autopep8 only fix one line at a time.

hhatto added a commit that referenced this issue Dec 3, 2011
@myint
Copy link
Collaborator Author

myint commented Dec 4, 2011

Thanks.

@myint myint closed this as completed Dec 4, 2011
hhatto pushed a commit that referenced this issue Aug 25, 2023
…n_check

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

No branches or pull requests

1 participant