Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code

Side by Side Diff: flake8-eyeo/tests/A208.py

Issue 29634555: NoIssue - Detect redundant comparisons Base URL: https://hg.adblockplus.org/codingtools
Patch Set: Created Dec. 10, 2017, 6:10 p.m.
Left:
Right:
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View unified diff | Download patch
« flake8-eyeo/flake8_eyeo.py ('K') | « flake8-eyeo/flake8_eyeo.py ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 a = b = c = 1
2
3 # * A208
4 if a == 1 or a == 2:
5 print(a)
6
7 # * A208
8 if b == a or a == c:
9 print(a)
10
11 # * A208
12 if a != 1 or 2 != a:
Sebastian Noack 2017/12/10 23:19:57 This expression will always evaluate to True. I su
13 print(a)
14
15 # * A208
16 if b != a or c != a:
17 print(a)
OLDNEW
« flake8-eyeo/flake8_eyeo.py ('K') | « flake8-eyeo/flake8_eyeo.py ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld