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

Remove no longer used appveyor (#1401)
[etc/vim.git] / tests / data / remove_parens.py
1 x = (1)
2 x = (1.2)
3
4 data = (
5     "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"
6 ).encode()
7
8 async def show_status():
9     while True:
10         try:
11             if report_host:
12                 data = (
13                    f"xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"
14                ).encode()
15         except Exception as e:
16             pass
17
18 def example():
19     return (("xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"))
20
21
22 def example1():
23     return ((1111111111111111111111111111111111111111111111111111111111111111111111111111111111111))
24
25
26 def example1point5():
27     return ((((((1111111111111111111111111111111111111111111111111111111111111111111111111111111111111))))))
28
29
30 def example2():
31     return (("xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"))
32
33
34 def example3():
35     return ((1111111111111111111111111111111111111111111111111111111111111111111111111111111))
36
37
38 def example4():
39     return ((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((True))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))
40
41
42 def example5():
43     return ((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((()))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))
44
45
46 def example6():
47     return ((((((((({a:a for a in [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17]})))))))))
48
49
50 def example7():
51     return ((((((((({a:a for a in [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20000000000000000000]})))))))))
52
53
54 def example8():
55     return (((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((None)))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))
56
57
58 # output
59 x = 1
60 x = 1.2
61
62 data = (
63     "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"
64 ).encode()
65
66
67 async def show_status():
68     while True:
69         try:
70             if report_host:
71                 data = (
72                     f"xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"
73                 ).encode()
74         except Exception as e:
75             pass
76
77
78 def example():
79     return "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"
80
81
82 def example1():
83     return 1111111111111111111111111111111111111111111111111111111111111111111111111111111111111
84
85
86 def example1point5():
87     return 1111111111111111111111111111111111111111111111111111111111111111111111111111111111111
88
89
90 def example2():
91     return (
92         "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"
93     )
94
95
96 def example3():
97     return (
98         1111111111111111111111111111111111111111111111111111111111111111111111111111111
99     )
100
101
102 def example4():
103     return True
104
105
106 def example5():
107     return ()
108
109
110 def example6():
111     return {a: a for a in [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17]}
112
113
114 def example7():
115     return {
116         a: a
117         for a in [
118             1,
119             2,
120             3,
121             4,
122             5,
123             6,
124             7,
125             8,
126             9,
127             10,
128             11,
129             12,
130             13,
131             14,
132             15,
133             16,
134             17,
135             18,
136             19,
137             20000000000000000000,
138         ]
139     }
140
141
142 def example8():
143     return None
144