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

Formalise style preference description (#2818)
[etc/vim.git] / tests / data / 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
6 class X:
7     def get_help_text(self):
8         return ngettext(
9             "Your password must contain at least %(min_length)d character.",
10             "Your password must contain at least %(min_length)d characters.",
11             self.min_length,
12         ) % {'min_length': self.min_length}
13
14 class A:
15     def b(self):
16         if self.connection.mysql_is_mariadb and (
17             10,
18             4,
19             3,
20         ) < self.connection.mysql_version < (10, 5, 2):
21             pass
22
23
24 # output
25
26 if (
27     e1234123412341234.winerror
28     not in (
29         _winapi.ERROR_SEM_TIMEOUT,
30         _winapi.ERROR_PIPE_BUSY,
31     )
32     or _check_timeout(t)
33 ):
34     pass
35
36
37 class X:
38     def get_help_text(self):
39         return (
40             ngettext(
41                 "Your password must contain at least %(min_length)d character.",
42                 "Your password must contain at least %(min_length)d characters.",
43                 self.min_length,
44             )
45             % {"min_length": self.min_length}
46         )
47
48
49 class A:
50     def b(self):
51         if (
52             self.connection.mysql_is_mariadb
53             and (
54                 10,
55                 4,
56                 3,
57             )
58             < self.connection.mysql_version
59             < (10, 5, 2)
60         ):
61             pass