]> git.madduck.net Git - etc/vim.git/blob - tests/class_blank_parentheses.py

madduck's git repository

Every one of the projects in this repository is available at the canonical URL git://git.madduck.net/madduck/pub/<projectpath> — see each project's metadata for the exact URL.

All patches and comments are welcome. Please squash your changes to logical commits before using git-format-patch and git-send-email to patches@git.madduck.net. If you'd read over the Git project's submission guidelines and adhered to them, I'd be especially grateful.

SSH access, as well as push access can be individually arranged.

If you use my repositories frequently, consider adding the following snippet to ~/.gitconfig and using the third clone URL listed for each project:

[url "git://git.madduck.net/madduck/"]
  insteadOf = madduck:

Removing empty parentheses after class name (#180)
[etc/vim.git] / tests / class_blank_parentheses.py
1 class SimpleClassWithBlankParentheses():
2     pass
3
4
5 class ClassWithSpaceParentheses():
6     first_test_data = 90
7     second_test_data = 100
8
9     def test_func(self):
10         return None
11
12
13 class ClassWithEmptyFunc(object):
14
15     def func_with_blank_parentheses():
16         return 5
17
18
19 def public_func_with_blank_parentheses():
20     return None
21
22
23 def class_under_the_func_with_blank_parentheses():
24
25     class InsideFunc():
26         pass
27
28
29 class NormalClass():
30
31     def func_for_testing(self, first, second):
32         sum = first + second
33         return sum
34
35
36 # output
37
38
39 class SimpleClassWithBlankParentheses:
40     pass
41
42
43 class ClassWithSpaceParentheses:
44     first_test_data = 90
45     second_test_data = 100
46
47     def test_func(self):
48         return None
49
50
51 class ClassWithEmptyFunc(object):
52
53     def func_with_blank_parentheses():
54         return 5
55
56
57 def public_func_with_blank_parentheses():
58     return None
59
60
61 def class_under_the_func_with_blank_parentheses():
62
63     class InsideFunc:
64         pass
65
66
67 class NormalClass:
68
69     def func_for_testing(self, first, second):
70         sum = first + second
71         return sum