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
commit1ff846d3175187afab8bada40077ed79b6dbc38d (patch)
treef36efa20f43402a11dba347acd2b8ba8bd051abe /coverage/collector.py
parent6cb76c01e10a3976df984fc19ec6a68550f46c9c (diff)
downloadpython-coveragepy-1ff846d3175187afab8bada40077ed79b6dbc38d.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 60eb918..7ffd40d 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