Mercurial > p > roundup > code
annotate roundup/dist/command/install_lib.py @ 7812:ecc34b7917e2
chore(refactor): multiple changes/cleanups
Simplify 'for x in [list val]; alist.append(x)' to 'alist = list([list
val])'. Easier to read as copy of list. Also twice as fast although
speed not an issue.
Remove unneeded list() wrappers. Replace set(list comprehension) with
set comprehension.
Also add trailing ,'s to last element in tuples/lists.
Add some noqa items for acceptable operations in context.
Switch " ... \" ...\" ..." to: ' ... " ... " ...' to remove need to
escape internal '"'.
Change 'not x in y' to 'x not in y'.
| author | John Rouillard <rouilj@ieee.org> |
|---|---|
| date | Sat, 16 Mar 2024 21:08:16 -0400 |
| parents | 42bf0a707763 |
| children |
| rev | line source |
|---|---|
| 4516 | 1 from roundup.dist.command.build import build_message_files, check_manifest |
|
6647
42bf0a707763
issue2551183 - Replace references to distutils in roundup/dist/command
John Rouillard <rouilj@ieee.org>
parents:
4516
diff
changeset
|
2 from setuptools.command.install_lib import install_lib as base |
| 4516 | 3 |
| 4 class install_lib(base): | |
| 5 | |
| 6 def run(self): | |
| 7 check_manifest() | |
| 8 build_message_files(self) | |
| 9 base.run(self) |
