This is an archive of the discontinued Mercurial Phabricator instance.

py3: hggettext
ClosedPublic

Authored by danchr on Oct 29 2020, 8:56 AM.

Details

Reviewers
None
Group Reviewers
hg-reviewers
Commits
rHGbea8cf87bef3: py3: hggettext
Summary

itervalues() is only available on Python 2. Since this script
doesn't currently refer to the main Mercurial modules, and as a result
doesn't have easy access to the pycompat module, I simply changed it
to use value() instead. Although this allocates a list on Python 2,
I'd consider that acceptable for a utility script; Mercurial doesn't
have all _that_ many commands anyway.

Diff Detail

Repository
rHG Mercurial
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.

Event Timeline

danchr created this revision.Oct 29 2020, 8:56 AM
This revision was not accepted when it landed; it landed in state Needs Review.
This revision was automatically updated to reflect the committed changes.