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 from com.my_lovely_company.my_lovely_team.my_lovely_project.my_lovely_component import (
2 MyLovelyCompanyTeamProjectComponent # NOT DRY
4 from com.my_lovely_company.my_lovely_team.my_lovely_project.my_lovely_component import (
5 MyLovelyCompanyTeamProjectComponent as component # DRY
8 # Please keep __all__ alphabetized within each category.
11 # Super-special typing primitives.
16 # ABCs (from collections.abc).
17 'AbstractSet', # collections.abc.Set.
21 # Concrete collection types.
29 'NamedTuple', # Not really a type.
38 # builtin types and objects
46 # user-defined types and objects
48 Cheese("Wensleydale"),
52 if 'PYTHON' in os.environ:
53 add_compiler(compiler_from_env())
55 # for compiler in compilers.values():
56 # add_compiler(compiler)
57 add_compiler(compilers[(7.0, 32)])
58 # add_compiler(compilers[(7.1, 64)])
60 # Comment before function.
61 def inline_comments_in_brackets_ruin_everything():
63 parameters.children = [
69 parameters.children = [
70 parameters.children[0], # (2 what if this was actually long
72 parameters.children[-1], # )2
74 if (self._proc is not None
75 # has the child process finished?
76 and self._returncode is None
77 # the child process has finished, but the
78 # transport hasn't been notified yet?
79 and self._proc.poll() is None):
81 # no newline before or after
93 ############################################################################
108 for element in collection # yup
109 if element is not None # right
115 for element in collection
117 if element is not None
120 # This one is actually too long to fit in a single line.
121 element.split('\n', 1)[0]
123 for element in collection.select_elements()
125 if element is not None
131 # and round and round we go
132 # and round and round we go
138 Node(statement, result),
139 Leaf(token.NEWLINE, '\n'), # FIXME: \r\n?
144 #######################
145 ### SECTION COMMENT ###
146 #######################
158 from com.my_lovely_company.my_lovely_team.my_lovely_project.my_lovely_component import (
159 MyLovelyCompanyTeamProjectComponent, # NOT DRY
161 from com.my_lovely_company.my_lovely_team.my_lovely_project.my_lovely_component import (
162 MyLovelyCompanyTeamProjectComponent as component, # DRY
165 # Please keep __all__ alphabetized within each category.
168 # Super-special typing primitives.
172 # ABCs (from collections.abc).
173 "AbstractSet", # collections.abc.Set.
176 # Concrete collection types.
184 "NamedTuple", # Not really a type.
194 # builtin types and objects
202 # user-defined types and objects
204 Cheese("Wensleydale"),
208 if "PYTHON" in os.environ:
209 add_compiler(compiler_from_env())
211 # for compiler in compilers.values():
212 # add_compiler(compiler)
213 add_compiler(compilers[(7.0, 32)])
214 # add_compiler(compilers[(7.1, 64)])
216 # Comment before function.
217 def inline_comments_in_brackets_ruin_everything():
219 parameters.children = [children[0], body, children[-1]] # (1 # )1
221 parameters.children = [
222 parameters.children[0], # (2 what if this was actually long
224 parameters.children[-1], # )2
227 self._proc is not None
228 # has the child process finished?
229 and self._returncode is None
230 # the child process has finished, but the
231 # transport hasn't been notified yet?
232 and self._proc.poll() is None
235 # no newline before or after
253 ############################################################################
268 element for element in collection if element is not None # yup # yup # right
274 for element in collection
276 if element is not None
279 # This one is actually too long to fit in a single line.
280 element.split("\n", 1)[0]
282 for element in collection.select_elements()
284 if element is not None
290 # and round and round we go
291 # and round and round we go
296 [Node(statement, result), Leaf(token.NEWLINE, "\n")], # FIXME: \r\n?
300 #######################
301 ### SECTION COMMENT ###
302 #######################