Programming/Python
Python Error : SyntaxWarning: "is" with a literal.
RInovation
2020. 2. 22. 08:26
[root@pytest:~#] python test.py |
|
Python Error : SyntaxWarning: "is" with a literal. Did you mean "=="? if x is "ALL": |
[root@pytest:~#] pip install flake8 |
|
Collecting flake8 Downloading flake8-3.7.9-py2.py3-none-any.whl (69 kB) |████████████████████████████████| 69 kB 512 kB/s Collecting mccabe<0.7.0,>=0.6.0 Downloading mccabe-0.6.1-py2.py3-none-any.whl (8.6 kB) Collecting pycodestyle<2.6.0,>=2.5.0 Downloading pycodestyle-2.5.0-py2.py3-none-any.whl (51 kB) |████████████████████████████████| 51 kB 3.4 MB/s Collecting pyflakes<2.2.0,>=2.1.0 Downloading pyflakes-2.1.1-py2.py3-none-any.whl (59 kB) |████████████████████████████████| 59 kB 3.8 MB/s Collecting entrypoints<0.4.0,>=0.3.0 Downloading entrypoints-0.3-py2.py3-none-any.whl (11 kB) Installing collected packages: mccabe, pycodestyle, pyflakes, entrypoints, flake8 Successfully installed entrypoints-0.3 flake8-3.7.9 mccabe-0.6.1 pycodestyle-2.5.0 pyflakes-2.1.1 U:\099.Programming\eclipse\workspace\JDbot>flake8 --version 3.7.9 (mccabe: 0.6.1, pycodestyle: 2.5.0, pyflakes: 2.1.1) CPython 3.8.1 on Windows |
반응형