summaryrefslogtreecommitdiff
path: root/coverage/collector.py
diff options
context:
space:
mode:
authorNed Batchelder <ned@nedbatchelder.com>2015-08-22 20:08:10 -0400
committerNed Batchelder <ned@nedbatchelder.com>2015-08-22 20:08:10 -0400
commita413eb2dbb2b7353f636ed7d6408c72c5ffa1708 (patch)
treed0708bd3729ec4c7341e67910fd3f13ab99edc71 /coverage/collector.py
parent5129897c731c0a163ea7a7e885b158e75647ba42 (diff)
downloadpython-coveragepy-git-a413eb2dbb2b7353f636ed7d6408c72c5ffa1708.tar.gz
Despite the name, these arguments were used.
Diffstat (limited to 'coverage/collector.py')
-rw-r--r--coverage/collector.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/coverage/collector.py b/coverage/collector.py
index 60eb918e..7ffd40d2 100644
--- a/coverage/collector.py
+++ b/coverage/collector.py
@@ -223,7 +223,7 @@ class Collector(object):
# install this as a trace function, and the first time it's called, it does
# the real trace installation.
- def _installation_trace(self, frame_unused, event_unused, arg_unused):
+ def _installation_trace(self, frame, event, arg):
"""Called on new threads, installs the real tracer."""
# Remove ourselves as the trace function
sys.settrace(None)
@@ -232,7 +232,7 @@ class Collector(object):
# Invoke the real trace function with the current event, to be sure
# not to lose an event.
if fn:
- fn = fn(frame_unused, event_unused, arg_unused)
+ fn = fn(frame, event, arg)
# Return the new trace function to continue tracing in this scope.
return fn