summaryrefslogtreecommitdiff
path: root/coverage/pytracer.py
diff options
context:
space:
mode:
authorNed Batchelder <ned@nedbatchelder.com>2019-05-12 16:29:13 -0400
committerNed Batchelder <ned@nedbatchelder.com>2019-05-13 08:34:15 -0400
commitd61d50fbabf810f8415bb9c3fe9d543ace019b66 (patch)
treedb21b4eee32de7e3156cbd20252298a332b237a1 /coverage/pytracer.py
parent672ae3ff45cac34731170dc5b5996b96b9ef6288 (diff)
downloadpython-coveragepy-git-d61d50fbabf810f8415bb9c3fe9d543ace019b66.tar.gz
Use pylint 2.x
Diffstat (limited to 'coverage/pytracer.py')
-rw-r--r--coverage/pytracer.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/coverage/pytracer.py b/coverage/pytracer.py
index d0549f72..4ffe41e3 100644
--- a/coverage/pytracer.py
+++ b/coverage/pytracer.py
@@ -83,7 +83,7 @@ class PyTracer(object):
#self.log(":", frame.f_code.co_filename, frame.f_lineno, event)
- if (self.stopped and sys.gettrace() == self._trace):
+ if (self.stopped and sys.gettrace() == self._trace): # pylint: disable=comparison-with-callable
# The PyTrace.stop() method has been called, possibly by another
# thread, let's deactivate ourselves now.
#self.log("X", frame.f_code.co_filename, frame.f_lineno)
@@ -196,7 +196,7 @@ class PyTracer(object):
# so don't warn if we are in atexit on PyPy and the trace function
# has changed to None.
dont_warn = (env.PYPY and env.PYPYVERSION >= (5, 4) and self.in_atexit and tf is None)
- if (not dont_warn) and tf != self._trace:
+ if (not dont_warn) and tf != self._trace: # pylint: disable=comparison-with-callable
self.warn(
"Trace function changed, measurement is likely wrong: %r" % (tf,),
slug="trace-changed",