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/find_class.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/find_class.py')
-rw-r--r-- | lab/find_class.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lab/find_class.py b/lab/find_class.py index d8dac0b5..b8ab437b 100644 --- a/lab/find_class.py +++ b/lab/find_class.py @@ -1,4 +1,4 @@ -class Parent(object): +class Parent: def meth(self): print("METH") @@ -31,7 +31,7 @@ def trace(frame, event, args): if f is func: qname = cls.__name__ + "." + fname break - print("{}: {}.{} {}".format(event, self, fname, qname)) + print(f"{event}: {self}.{fname} {qname}") return trace import sys |