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 = [
68 parameters.children = [
71 children[-1], # type: ignore
74 parameters.children = [
75 parameters.children[0], # (2 what if this was actually long
77 parameters.children[-1], # )2
79 parameters.children = [parameters.what_if_this_was_actually_long.children[0], body, parameters.children[-1]] # type: ignore
80 if (self._proc is not None
81 # has the child process finished?
82 and self._returncode is None
83 # the child process has finished, but the
84 # transport hasn't been notified yet?
85 and self._proc.poll() is None):
87 # no newline before or after
99 ############################################################################
114 for element in collection # yup
115 if element is not None # right
121 for element in collection
123 if element is not None
126 # This one is actually too long to fit in a single line.
127 element.split('\n', 1)[0]
129 for element in collection.select_elements()
131 if element is not None
137 # and round and round we go
138 # and round and round we go
144 Node(statement, result),
145 Leaf(token.NEWLINE, '\n'), # FIXME: \r\n?
149 CONFIG_FILES = [CONFIG_FILE, ] + SHARED_CONFIG_FILES + USER_CONFIG_FILES # type: Final
151 #######################
152 ### SECTION COMMENT ###
153 #######################
165 from com.my_lovely_company.my_lovely_team.my_lovely_project.my_lovely_component import (
166 MyLovelyCompanyTeamProjectComponent, # NOT DRY
168 from com.my_lovely_company.my_lovely_team.my_lovely_project.my_lovely_component import (
169 MyLovelyCompanyTeamProjectComponent as component, # DRY
172 # Please keep __all__ alphabetized within each category.
175 # Super-special typing primitives.
179 # ABCs (from collections.abc).
180 "AbstractSet", # collections.abc.Set.
183 # Concrete collection types.
191 "NamedTuple", # Not really a type.
201 # builtin types and objects
209 # user-defined types and objects
211 Cheese("Wensleydale"),
215 if "PYTHON" in os.environ:
216 add_compiler(compiler_from_env())
218 # for compiler in compilers.values():
219 # add_compiler(compiler)
220 add_compiler(compilers[(7.0, 32)])
221 # add_compiler(compilers[(7.1, 64)])
223 # Comment before function.
224 def inline_comments_in_brackets_ruin_everything():
226 parameters.children = [children[0], body, children[-1]] # (1 # )1
227 parameters.children = [
230 children[-1], # type: ignore
233 parameters.children = [
234 parameters.children[0], # (2 what if this was actually long
236 parameters.children[-1], # )2
238 parameters.children = [
239 parameters.what_if_this_was_actually_long.children[0],
241 parameters.children[-1],
244 self._proc is not None
245 # has the child process finished?
246 and self._returncode is None
247 # the child process has finished, but the
248 # transport hasn't been notified yet?
249 and self._proc.poll() is None
252 # no newline before or after
270 ############################################################################
285 element for element in collection if element is not None # yup # yup # right
291 for element in collection
293 if element is not None
296 # This one is actually too long to fit in a single line.
297 element.split("\n", 1)[0]
299 for element in collection.select_elements()
301 if element is not None
307 # and round and round we go
308 # and round and round we go
313 [Node(statement, result), Leaf(token.NEWLINE, "\n")], # FIXME: \r\n?
317 CONFIG_FILES = [CONFIG_FILE] + SHARED_CONFIG_FILES + USER_CONFIG_FILES # type: Final
319 #######################
320 ### SECTION COMMENT ###
321 #######################