This is an archive of the discontinued Mercurial Phabricator instance.

cleanup: run pyupgrade on our source tree to clean up varying things
ClosedPublic

Authored by durin42 on Mar 6 2020, 2:04 PM.

Details

Summary

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.

  1. skip-blame no-op automated code cleanups

Diff Detail

Repository
rHG Mercurial
Branch
default
Lint
No Linters Available
Unit
No Unit Test Coverage

Event Timeline

durin42 created this revision.Mar 6 2020, 2:04 PM
martinvonz accepted this revision.Mar 6 2020, 2:19 PM
This revision is now accepted and ready to land.Mar 6 2020, 2:19 PM