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

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

Issue 30050569: Noissue - Removed linters which are now moved to a seperate repository (Closed)
Patch Set: Created April 25, 2019, 11:17 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
« no previous file with comments | « flake8-eyeo/tests/A110_unicode_literals.py ('k') | flake8-eyeo/tests/A112.py » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 def redundant_parenthesis(x, y, z):
2 # * A111
3 while (x):
4 # * A111
5 if ((x or y) and z):
6 pass
7 # * A111
8 elif (x == max(y, z)):
9 pass
10 else:
11 return
12
13 # * A111
14 for (a, b, c) in y:
15 # * A111
16 result = (a + b + c)
17 # * A111
18 return result or ('foo')
19
20 # A111
21 (a, b, c) = x
22 del a, b, c
23
24
25 def mandatory_parenthesis(x, y, z):
26 if ():
27 return
28 if (x, y, z):
29 return
30
31 if (x or y) and z:
32 return
33 if x and (y or z):
34 return
35
36 if (x or
37 y):
38 return
39
40
41 def acceptable_parenthesis(x, y, z):
42 a = (x == y)
43 b = (x or y == z)
44 c = (x + y) / z
45 d = (x and y) or z
46 return (a, b, c, d)
OLDNEW
« no previous file with comments | « flake8-eyeo/tests/A110_unicode_literals.py ('k') | flake8-eyeo/tests/A112.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld