From 1ff846d3175187afab8bada40077ed79b6dbc38d Mon Sep 17 00:00:00 2001 From: Ned Batchelder Date: Sat, 22 Aug 2015 20:08:10 -0400 Subject: Despite the name, these arguments were used. --- coverage/collector.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'coverage/collector.py') 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 -- cgit v1.2.1