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 if 'PYTHON' in os.environ:
27 add_compiler(compiler_from_env())
29 # for compiler in compilers.values():
30 # add_compiler(compiler)
31 add_compiler(compilers[(7.0, 32)])
32 # add_compiler(compilers[(7.1, 64)])
34 # Comment before function.
35 def inline_comments_in_brackets_ruin_everything():
37 parameters.children = [
38 parameters.children[0], # (1
40 parameters.children[-1], # )1
43 parameters.children = [
44 parameters.children[0], # (2 what if this was actually long
46 parameters.children[-1], # )2
48 if (self._proc is not None
49 # has the child process finished?
50 and self._returncode is None
51 # the child process has finished, but the
52 # transport hasn't been notified yet?
53 and self._proc.poll() is None):
55 # no newline before or after
67 ############################################################################
82 for element in collection # yup
83 if element is not None # right
89 for element in collection
91 if element is not None
94 # This one is actually too long to fit in a single line.
95 element.split('\n', 1)[0]
97 for element in collection.select_elements()
99 if element is not None
105 # and round and round we go
106 # and round and round we go
112 Node(statement, result),
113 Leaf(token.NEWLINE, '\n'), # FIXME: \r\n?
118 #######################
119 ### SECTION COMMENT ###
120 #######################
132 # Please keep __all__ alphabetized within each category.
135 # Super-special typing primitives.
139 # ABCs (from collections.abc).
140 "AbstractSet", # collections.abc.Set.
143 # Concrete collection types.
151 "NamedTuple", # Not really a type.
155 if "PYTHON" in os.environ:
156 add_compiler(compiler_from_env())
158 # for compiler in compilers.values():
159 # add_compiler(compiler)
160 add_compiler(compilers[(7.0, 32)])
161 # add_compiler(compilers[(7.1, 64)])
163 # Comment before function.
164 def inline_comments_in_brackets_ruin_everything():
166 parameters.children = [
167 parameters.children[0], body, parameters.children[-1] # (1 # )1
170 parameters.children = [
171 parameters.children[0], # (2 what if this was actually long
173 parameters.children[-1], # )2
176 self._proc is not None
177 # has the child process finished?
178 and self._returncode is None
179 # the child process has finished, but the
180 # transport hasn't been notified yet?
181 and self._proc.poll() is None
184 # no newline before or after
202 ############################################################################
217 element for element in collection if element is not None # yup # yup # right
223 for element in collection
225 if element is not None
228 # This one is actually too long to fit in a single line.
229 element.split("\n", 1)[0]
231 for element in collection.select_elements()
233 if element is not None
239 # and round and round we go
240 # and round and round we go
245 [Node(statement, result), Leaf(token.NEWLINE, "\n")], # FIXME: \r\n?
249 #######################
250 ### SECTION COMMENT ###
251 #######################