diff options
author | glacials <qhiiyr@gmail.com> | 2021-08-06 14:17:26 -0700 |
---|---|---|
committer | Ned Batchelder <ned@nedbatchelder.com> | 2021-10-06 16:49:01 -0400 |
commit | 19545b7d78fb91a82088517681e20cf4ffcd8c63 (patch) | |
tree | 3012ec70fdedebf2604b010c22c56dbefe9f0ba6 /coverage/context.py | |
parent | 613446ca9da592c6925329b869b9ef785d83f76e (diff) | |
download | python-coveragepy-git-19545b7d78fb91a82088517681e20cf4ffcd8c63.tar.gz |
Fix an incompatibility with pyarmor
Diffstat (limited to 'coverage/context.py')
-rw-r--r-- | coverage/context.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/coverage/context.py b/coverage/context.py index 45e86a5c..43d2b1cc 100644 --- a/coverage/context.py +++ b/coverage/context.py @@ -48,7 +48,7 @@ def qualname_from_frame(frame): fname = co.co_name method = None if co.co_argcount and co.co_varnames[0] == "self": - self = frame.f_locals["self"] + self = frame.f_locals.get("self", None) method = getattr(self, fname, None) if method is None: |