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.
4 # Super-special typing primitives.
9 # ABCs (from collections.abc).
10 'AbstractSet', # collections.abc.Set.
14 # Concrete collection types.
22 'NamedTuple', # Not really a type.
26 # Comment before function.
27 def inline_comments_in_brackets_ruin_everything():
29 parameters.children = [
30 parameters.children[0], # (1
32 parameters.children[-1], # )1
35 parameters.children = [
36 parameters.children[0], # (2 what if this was actually long
38 parameters.children[-1], # )2
40 if (self._proc is not None
41 # has the child process finished?
42 and self._returncode is None
43 # the child process has finished, but the
44 # transport hasn't been notified yet?
45 and self._proc.poll() is None):
47 # no newline before or after
59 ############################################################################
74 for element in collection # yup
75 if element is not None # right
81 for element in collection
83 if element is not None
86 # This one is actually too long to fit in a single line.
87 element.split('\n', 1)[0]
89 for element in collection.select_elements()
91 if element is not None
97 # and round and round we go
98 # and round and round we go
104 Node(statement, result),
105 Leaf(token.NEWLINE, '\n'), # FIXME: \r\n?
110 #######################
111 ### SECTION COMMENT ###
112 #######################
124 # Please keep __all__ alphabetized within each category.
127 # Super-special typing primitives.
131 # ABCs (from collections.abc).
132 "AbstractSet", # collections.abc.Set.
135 # Concrete collection types.
143 "NamedTuple", # Not really a type.
147 # Comment before function.
150 def inline_comments_in_brackets_ruin_everything():
152 parameters.children = [
153 parameters.children[0], body, parameters.children[-1] # (1 # )1
156 parameters.children = [
157 parameters.children[0], # (2 what if this was actually long
159 parameters.children[-1], # )2
162 self._proc is not None
163 # has the child process finished?
164 and self._returncode is None
165 # the child process has finished, but the
166 # transport hasn't been notified yet?
167 and self._proc.poll() is None
170 # no newline before or after
188 ############################################################################
203 element for element in collection if element is not None # yup # yup # right
209 for element in collection
211 if element is not None
214 # This one is actually too long to fit in a single line.
215 element.split("\n", 1)[0]
217 for element in collection.select_elements()
219 if element is not None
225 # and round and round we go
226 # and round and round we go
231 [Node(statement, result), Leaf(token.NEWLINE, "\n")], # FIXME: \r\n?
235 #######################
236 ### SECTION COMMENT ###
237 #######################