Browse Source
Avoid SyntaxWarnings on Python >= 3.8 % `python3.8` ``` >>> "second" is "second" <stdin>:1: SyntaxWarning: "is" with a literal. Did you mean "=="? ``` `flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics` ``` ./Tools/autotest/arducopter.py:3899:20: F632 use ==/!= to compare constant literals (str, bytes, int, float, tuple) if loop is not "second": ^ ./Tools/autotest/arducopter.py:4047:20: F632 use ==/!= to compare constant literals (str, bytes, int, float, tuple) if loop is not "second": ^ 2 F632 use ==/!= to compare constant literals (str, bytes, int, float, tuple) 2 ```zr-v5.1
1 changed files with 2 additions and 2 deletions
Loading…
Reference in new issue