Mercurial > p > roundup > code
view .hgignore @ 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 | 18445cd132c8 |
| children | b99e76e76496 |
line wrap: on
line source
syntax: glob *.orig *.rej *~ \#*\# .\#* *.swp *.tmp *.pyd *.pyc *.pyo build demo dist MANIFEST roundup.egg-info _test_* *.cover share/doc/roundup/html doc/FAQ.html doc/admin_guide.html doc/announcement.html doc/customizing.html doc/design.html doc/developers.html doc/features.html doc/glossary.html doc/implementation.html doc/index.html doc/installation.html doc/mysql.html doc/overview.html doc/postgresql.html doc/security.html doc/tracker_templates.html doc/upgrading.html doc/user_guide.html doc/whatsnew-0.7.html doc/whatsnew-0.8.html doc/xmlrpc.html locale/*.mo locale/*.bak locale/*.poedit website/www/_tmp/ website/www/COPYING.txt website/www/docs website/www/html/ .pytest_cache
