mikehoyio / atom-python-black

Python Black for Atom editor
MIT License
20 stars 7 forks source link

Black failed to reformat print statement in Python 3 #22

Closed zkaden closed 5 years ago

zkaden commented 5 years ago

I am receiving the error

Black failed to reformat 💥 💔 💥
error: cannot format <filepath>
Cannot parse: 128:45:         print("Loading training data...", end="")

in python3.

Additionally,

def func():
    # fmt: off
    print("Loading training data...", end="")
    # fmt: on
    <code>

throws the same error and does not skip the line with the print statement