diff options
author | Hugo van Kemenade <hugovk@users.noreply.github.com> | 2021-05-03 01:40:05 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-05-02 15:40:05 -0700 |
commit | df79a6390f6d0531f6411f745d0ccd2c3d674883 (patch) | |
tree | 182575a9f279d791c9a3f724ed8373c750cb49bd /lab/platform_info.py | |
parent | bb73791b59f74b6621a87036c14a6be6a23e0e55 (diff) | |
download | python-coveragepy-git-df79a6390f6d0531f6411f745d0ccd2c3d674883.tar.gz |
refactor: remove redundant Python 2 code (#1155)
* Remove Python 2 code
* Upgrade Python syntax with pyupgrade
* Upgrade Python syntax with pyupgrade --py3-plus
* Upgrade Python syntax with pyupgrade --py36-plus
* Remove unused imports
Diffstat (limited to 'lab/platform_info.py')
-rw-r--r-- | lab/platform_info.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lab/platform_info.py b/lab/platform_info.py index 7ddde47a..1ea14bed 100644 --- a/lab/platform_info.py +++ b/lab/platform_info.py @@ -15,11 +15,11 @@ def whatever(f): def dump_module(mod): - print("\n### {} ---------------------------".format(mod.__name__)) + print(f"\n### {mod.__name__} ---------------------------") for name in dir(mod): if name.startswith("_"): continue - print("{:30s}: {!r:.100}".format(name, whatever(getattr(mod, name)))) + print(f"{name:30s}: {whatever(getattr(mod, name))!r:.100}") for mod in [platform, sys]: |