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.
1 # Please keep __all__ alphabetized within each category.
3 # Super-special typing primitives.
8 # ABCs (from collections.abc).
9 'AbstractSet', # collections.abc.Set.
13 # Concrete collection types.
21 'NamedTuple', # Not really a type.
25 def inline_comments_in_brackets_ruin_everything():
27 parameters.children = [
28 parameters.children[0], # (1
30 parameters.children[-1], # )1
33 parameters.children = [
34 parameters.children[0], # (2 what if this was actually long
36 parameters.children[-1], # )2
38 if (self._proc is not None
39 # has the child process finished?
40 and self._returncode is None
41 # the child process has finished, but the
42 # transport hasn't been notified yet?
43 and self._proc.poll() is None):
54 ############################################################################
69 for element in collection # yup
70 if element is not None # right
76 for element in collection
78 if element is not None
81 # This one is actually too long to fit in a single line.
82 element.split('\n', 1)[0]
84 for element in collection.select_elements()
86 if element is not None
91 Node(statement, result),
92 Leaf(token.NEWLINE, '\n'), # FIXME: \r\n?
105 # Please keep __all__ alphabetized within each category.
107 # Super-special typing primitives.
111 # ABCs (from collections.abc).
112 'AbstractSet', # collections.abc.Set.
115 # Concrete collection types.
123 'NamedTuple', # Not really a type.
128 def inline_comments_in_brackets_ruin_everything():
130 parameters.children = [
131 parameters.children[0], body, parameters.children[-1] # (1 # )1
134 parameters.children = [
135 parameters.children[0], # (2 what if this was actually long
137 parameters.children[-1], # )2
140 self._proc is not None
141 # has the child process finished?
142 and self._returncode is None
143 # the child process has finished, but the
144 # transport hasn't been notified yet?
145 and self._proc.poll() is None
162 ############################################################################
176 element for element in collection if element is not None # yup # yup # right
182 for element in collection
184 if element is not None
187 # This one is actually too long to fit in a single line.
188 element.split('\n', 1)[0]
190 for element in collection.select_elements()
192 if element is not None
196 [Node(statement, result), Leaf(token.NEWLINE, '\n')], # FIXME: \r\n?