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

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

Issue 29375591: Issue 4882 - Renamed flake8-abp to flake8-eyeo (Closed)
Patch Set: Adapted patchconv/tox.ini Created Feb. 13, 2017, 1:11 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
1 def redundant_parenthesis(x, y, z): 1 def redundant_parenthesis(x, y, z):
2 # * A111 2 # * A111
3 while (x): 3 while (x):
4 # * A111 4 # * A111
5 if ((x or y) and z): 5 if ((x or y) and z):
6 pass 6 pass
7 # * A111 7 # * A111
8 elif (x == max(y, z)): 8 elif (x == max(y, z)):
9 pass 9 pass
10 else: 10 else:
11 return 11 return
12 12
13 13
14 def mandatory_parenthesis(x, y, z): 14 def mandatory_parenthesis(x, y, z):
15 if (): 15 if ():
16 return 16 return
17 if (x, y, z): 17 if (x, y, z):
18 return 18 return
19 19
20 if (x or y) and z: 20 if (x or y) and z:
21 return 21 return
22 if x and (y or z): 22 if x and (y or z):
23 return 23 return
24 24
25 if (x or 25 if (x or
26 y): 26 y):
27 return 27 return
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