-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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
black fails on print function when using Python 2.7 as target version #768
Comments
I believe this is fixed in master, can you check? |
I tested it against cea13f4 and it works. |
Will there be a new release soon that includes this fix? I'm in the process of migrating a codebase to python 3 and would prefer not to disable black. |
Nevermind, I was able to use the fixed version by updating my pre-commit config. 🎉 |
I just ran into this problem using |
I also just ran into this problem. This is my pyproject.toml
I use black version Works fine after downgrading with |
Also ran into this issue. Is there a new release planned soon? |
Yes, there'll be a new release out soonish, see #988. |
When running black on Python file which uses
from __future__ import print_function
statement with Python 2.7 target, it fails with the following error:Since
from __future__ import print_function
statement is used, I don't think it should fail in this scenario.Environment information:
Operating system: Ubuntu Xenial
Python version: Python 3.6.7
Black version: black, version 19.3b0
The text was updated successfully, but these errors were encountered: