]> git.madduck.net Git - etc/vim.git/blob - tests/data/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:

Stability fixup: interaction between newlines and comments (#1975)
[etc/vim.git] / tests / data / class_blank_parentheses.py
1 class SimpleClassWithBlankParentheses():
2     pass
3 class ClassWithSpaceParentheses ( ):
4     first_test_data = 90
5     second_test_data = 100
6     def test_func(self):
7         return None
8 class ClassWithEmptyFunc(object):
9
10     def func_with_blank_parentheses():
11         return 5
12
13
14 def public_func_with_blank_parentheses():
15     return None
16 def class_under_the_func_with_blank_parentheses():
17     class InsideFunc():
18         pass
19 class NormalClass (
20 ):
21     def func_for_testing(self, first, second):
22         sum = first + second
23         return sum
24
25
26 # output
27
28
29 class SimpleClassWithBlankParentheses:
30     pass
31
32
33 class ClassWithSpaceParentheses:
34     first_test_data = 90
35     second_test_data = 100
36
37     def test_func(self):
38         return None
39
40
41 class ClassWithEmptyFunc(object):
42     def func_with_blank_parentheses():
43         return 5
44
45
46 def public_func_with_blank_parentheses():
47     return None
48
49
50 def class_under_the_func_with_blank_parentheses():
51     class InsideFunc:
52         pass
53
54
55 class NormalClass:
56     def func_for_testing(self, first, second):
57         sum = first + second
58         return sum