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

Fix merging implicit multiline strings that have inline comments (#3956)
[etc/vim.git] / tests / data / cases / trailing_comma_optional_parens1.py
1 if e1234123412341234.winerror not in (_winapi.ERROR_SEM_TIMEOUT,
2                         _winapi.ERROR_PIPE_BUSY) or _check_timeout(t):
3     pass
4
5 if x:
6     if y:
7         new_id = max(Vegetable.objects.order_by('-id')[0].id,
8                      Mineral.objects.order_by('-id')[0].id) + 1
9
10 class X:
11     def get_help_text(self):
12         return ngettext(
13             "Your password must contain at least %(min_length)d character.",
14             "Your password must contain at least %(min_length)d characters.",
15             self.min_length,
16         ) % {'min_length': self.min_length}
17
18 class A:
19     def b(self):
20         if self.connection.mysql_is_mariadb and (
21             10,
22             4,
23             3,
24         ) < self.connection.mysql_version < (10, 5, 2):
25             pass
26
27
28 # output
29
30 if e1234123412341234.winerror not in (
31     _winapi.ERROR_SEM_TIMEOUT,
32     _winapi.ERROR_PIPE_BUSY,
33 ) or _check_timeout(t):
34     pass
35
36 if x:
37     if y:
38         new_id = (
39             max(
40                 Vegetable.objects.order_by("-id")[0].id,
41                 Mineral.objects.order_by("-id")[0].id,
42             )
43             + 1
44         )
45
46
47 class X:
48     def get_help_text(self):
49         return ngettext(
50             "Your password must contain at least %(min_length)d character.",
51             "Your password must contain at least %(min_length)d characters.",
52             self.min_length,
53         ) % {"min_length": self.min_length}
54
55
56 class A:
57     def b(self):
58         if self.connection.mysql_is_mariadb and (
59             10,
60             4,
61             3,
62         ) < self.connection.mysql_version < (10, 5, 2):
63             pass