--error-mode seems to enable --py3k errors even when the latter flag is not given #1869
Closed
Description
Steps to reproduce
- Create file with content: print("Hello, world!")
- Launch pylint for python 2.7 with arguments "--enable=E --reports=n" and check this file
Current behavior
As a result of check, pylint output following result:
$ /usr/bin/pylint --enable=E --reports=n test.py
No config file found, using default configuration
************* Module test
C: 1, 0: Unnecessary parens after 'print' keyword (superfluous-parens)
C: 1, 0: Missing module docstring (missing-docstring)
E: 1, 0: print statement used (print-statement)
Expected behavior
Python 2.7 doesn't require using of print() function. Moreover, when I'm actually using print() function instead of print statement, pylint still raises error message.
pylint --version output
$ pylint --version
No config file found, using default configuration
pylint 1.8.2,
astroid 1.6.1
Python 2.7.12 (default, Dec 4 2017, 14:50:18)
[GCC 5.4.0 20160609]
Bug raised in VS Code python module, which by default uses pylint: microsoft/vscode-python#722
Also it was discussed here microsoft/vscode#43024