( )⚙ D4290 hghave: move from requiring the PYTHON3 env var to looking for `python3`

This is an archive of the discontinued Mercurial Phabricator instance.

hghave: move from requiring the PYTHON3 env var to looking for `python3`
ClosedPublic

Authored by durin42 on Aug 15 2018, 10:02 PM.

Details

Summary

We're starting to write new utility scripts in Python 3, and I think
it's reasonable to expect python3 to be something we should use if
it's present. I wrote the regex to specifically ban Python 3 prior to
Python 3.5 because we won't ever support that.

I moved the only test that was using $PYTHON3 to just using python3
directly.

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.