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

C0326 not picking up whitespace before open bracket with print #2041

Closed
markmcdowall opened this issue Apr 25, 2018 · 2 comments
Closed

C0326 not picking up whitespace before open bracket with print #2041

markmcdowall opened this issue Apr 25, 2018 · 2 comments
Labels
Bug 🪲 Minor 💅 Polishing pylint is always nice

Comments

@markmcdowall
Copy link

markmcdowall commented Apr 25, 2018

Steps to reproduce

from __future__ import print_function
print ("Hello!")

Current behavior

This raises no warning in python 2 even though the print_function has been imported

Expected behavior

If the futures print function has been imported in python 2 I would have expected this to have raised a warning:

print ("Hello!")
     ^ (bad-whitespace)

pylint --version output

No config file found, using default configuration
pylint 1.8.4,
astroid 1.6.3
Python 2.7.10 (default, Aug 31 2016, 10:20:55)
[GCC 5.4.0 20160609]

@PCManticore
Copy link
Contributor

Thanks for the issue, I can reproduce it.

@Pierre-Sassoulas
Copy link
Member

bad-whitespace has been removed in #3572 , black or another formatter can help you with this better than Pylint.

MikulasZelinka added a commit to MikulasZelinka/python-project-template that referenced this issue Feb 13, 2021
C0326 and C0330 no longer exist or cause problems:
- pylint-dev/pylint#2041
- psf/black#48 (comment)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug 🪲 Minor 💅 Polishing pylint is always nice
Projects
None yet
Development

No branches or pull requests

3 participants