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

Unreadable output on multiline + .format() #590

Closed
hyperknot opened this issue Oct 31, 2018 · 1 comment
Closed

Unreadable output on multiline + .format() #590

hyperknot opened this issue Oct 31, 2018 · 1 comment

Comments

@hyperknot
Copy link

Black 32eed7

Playground link

Options

--line-length=100
--py36

Input

return """
    An internal error occurred: {}
    See logs for full stacktrace.
    """.format(e), 500

Output

return (
    """
    An internal error occurred: {}
    See logs for full stacktrace.
    """.format(
        e
    ),
    500,
)

Expected

I honestly thing that the original form is more readable in every possible way.

@zsol
Copy link
Collaborator

zsol commented Jan 31, 2019

This is a duplicate of #256

@zsol zsol closed this as completed Jan 31, 2019
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

2 participants