forked from pantsbuild/pants
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Modernize
check_pants_pex_abi.py
script to Python 3 (pantsbuild#7631)
Because we're guaranteed to have Py3 on all wheel building shards, we can refactor this script to use modern Python 3 for improved code and to prepare for removing Python 2 from CI. Makes these refactors: * Use type hints to allow scanning function signatures more easily. * Use f-strings, but only where more readable. * Remove unnecessary `__future__` import. * Remove unnecessary file encoding header, since Python 3 assumes source files are UTF-8. * Use modern `pathlib` library for object oriented interface (see [PEP 428](https://www.python.org/dev/peps/pep-0428/#why-an-object-oriented-api))
- Loading branch information
1 parent
995f5ba
commit e987845
Showing
1 changed file
with
11 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters