cleanup: run pyupgrade on our source tree to clean up varying things
Built with: hg files 'set:**.py - mercurial/thirdparty/** - "contrib/python-zstandard/**" - hgext/fsmonitor/pywatchman/**' | xargs pyupgrade --keep-percent-format --keep-extraneous-parens and then blackened. pyupgrade comes from https://github.com/asottile/pyupgrade with a patch to let me preserve extraneous parens (which we use for marking strings that shouldn't be translated), and lets us clean up a bunch of idioms that have cruftily accumulated over the years. # skip-blame no-op automated code cleanups Differential Revision: https://phab.mercurial-scm.org/D8255
Showing
- contrib/benchmarks/__init__.py 1 addition, 1 deletioncontrib/benchmarks/__init__.py
- contrib/check-py3-compat.py 1 addition, 1 deletioncontrib/check-py3-compat.py
- contrib/perf.py 2 additions, 2 deletionscontrib/perf.py
- hgext/absorb.py 4 additions, 4 deletionshgext/absorb.py
- hgext/closehead.py 1 addition, 1 deletionhgext/closehead.py
- hgext/convert/hg.py 3 additions, 7 deletionshgext/convert/hg.py
- hgext/convert/subversion.py 3 additions, 3 deletionshgext/convert/subversion.py
- hgext/eol.py 1 addition, 1 deletionhgext/eol.py
- hgext/fastannotate/commands.py 1 addition, 1 deletionhgext/fastannotate/commands.py
- hgext/fsmonitor/__init__.py 10 additions, 16 deletionshgext/fsmonitor/__init__.py
- hgext/histedit.py 3 additions, 3 deletionshgext/histedit.py
- hgext/largefiles/basestore.py 1 addition, 1 deletionhgext/largefiles/basestore.py
- hgext/largefiles/overrides.py 2 additions, 2 deletionshgext/largefiles/overrides.py
- hgext/largefiles/remotestore.py 3 additions, 3 deletionshgext/largefiles/remotestore.py
- hgext/mq.py 2 additions, 2 deletionshgext/mq.py
- hgext/phabricator.py 5 additions, 5 deletionshgext/phabricator.py
- hgext/rebase.py 2 additions, 2 deletionshgext/rebase.py
- hgext/remotefilelog/__init__.py 1 addition, 1 deletionhgext/remotefilelog/__init__.py
- hgext/remotefilelog/basepack.py 2 additions, 2 deletionshgext/remotefilelog/basepack.py
- hgext/remotefilelog/contentstore.py 1 addition, 1 deletionhgext/remotefilelog/contentstore.py
Loading
Please register or sign in to comment